SimulationManager.GetSimulationNetworkChannelsAsync Method

Returns the collection of SimulationNetworkChannelProfile objects representing the set of channels passed to StartSimulationNetworkChannelAsync.

Syntax

public:
static IAsyncOperation<IVectorView<SimulationNetworkChannelProfile>>^ GetSimulationNetworkChannelsAsync()  

Return value

Type: IAsyncOperation<IVectorView<SimulationNetworkChannelProfile» 

Returns the collection of SimulationNetworkChannelProfile objects representing the set of channels passed to StartSimulationNetworkChannelAsync.

Example

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)
);  

Requirements

Namespace: Microsoft.Xbox.Tools.ConsoleExtensions

Metadata: microsoft.xbox.tools.consoleextensions.winmd

See also

Reference

SimulationManager Class

SimulationManager Members

Microsoft.Xbox.Tools.ConsoleExtensions Namespace