Returns the collection of SimulationNetworkChannelProfile objects representing the set of channels passed to StartSimulationNetworkChannelAsync.
public:
static IAsyncOperation<IVectorView<SimulationNetworkChannelProfile>>^ GetSimulationNetworkChannelsAsync()
Type: IAsyncOperation<IVectorView<SimulationNetworkChannelProfile»
Returns the collection of SimulationNetworkChannelProfile objects representing the set of channels passed to StartSimulationNetworkChannelAsync.
var XtfSimulationManager = Microsoft.Xbox.Tools.ConsoleExtensions.SimulationManager;
XtfSimulationManager.getSimulationNetworkChannelsAsync().then(
function complete(networkChannelProfiles) {
writeLog("getSimulationNetworkChannelsAsync completed");
writeLog(" networkChannelProfiles.length: " + networkChannelProfiles.length);
for (var i = 0; i < networkChannelProfiles.length; i++) {
var networkChannelProfile = networkChannelProfiles[i];
var profileStr = " networkChannelProfile[" + i + "].";
writeLog(profileStr + "networkChannelIndex = " + networkChannelProfile.networkChannelIndex);
writeLog(profileStr + "networkSimulationProfile = " + networkChannelProfile.networkSimulationProfile);
for (var j = 0; j < networkChannelProfile.networkAddresses.length; j++) {
writeLog(profileStr + "networkAddresses[" + j + "] = " + networkChannelProfile.networkAddresses[j]);
}
}
}.bind(this),
function error(e) {
writeLog("getSimulationNetworkChannelsAsync error" + e);
}.bind(this)
);
Namespace: Microsoft.Xbox.Tools.ConsoleExtensions
Metadata: microsoft.xbox.tools.consoleextensions.winmd