Returns the list of ports that were previously exempted from simulation using SetNetworkProtocolExemptionAsync.
public:
static IAsyncOperation<IVectorView<int32>>^ GetNetworkProtocolPortExemptionsAsync(
SimulationManagerNetworkProtocol protocol
)
protocol
Type: SimulationManagerNetworkProtocol
The protocol family of the exempted ports.
Type: IAsyncOperation<IVectorView<Int32»
Returns the list of exempted ports.
var XtfSimulationManager = Microsoft.Xbox.Tools.ConsoleExtensions.SimulationManager;
XtfSimulationManager.getNetworkProtocolPortExemptionsAsync(Microsoft.Xbox.Tools.ConsoleExtensions.NetworkProtocol.tcp).then(
function complete(tcpPorts) {
writeLog("getNetworkProtocolPortExemptionsAsync completed");
writeLog(" tcpPorts.length: " + tcpPorts.length);
for (var i = 0; i < tcpPorts.length; i++) {
var tcpPort = tcpPorts[i];
var portStr = " tcpPorts[" + i + "].";
writeLog(portStr);
}
}.bind(this),
function error(e) {
writeLog("getNetworkProtocolPortExemptionsAsync error" + e);
}.bind(this)
);
Namespace: Microsoft.Xbox.Tools.ConsoleExtensions
Metadata: microsoft.xbox.tools.consoleextensions.winmd