XboxLiveEndpointPair.RemotePort Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the port for the remote endpoint.
Important
This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.
public:
property Platform::String ^ RemotePort { Platform::String ^ get(); };
winrt::hstring RemotePort();
public string RemotePort { get; }
var string = xboxLiveEndpointPair.remotePort;
Public ReadOnly Property RemotePort As String
Property Value
The port for the remote endpoint.
Remarks
This value will be zero if the XboxLiveEndpointPairTemplate allowed dynamically-assigned port numbers. In that case, your app will have to determine the remote port number through other means.
The remote port number returned by this property is valid only on the calling device. To retrieve the remote network identity for use by other peers, use the corresponding XboxLiveDeviceAddress object, and send a snapshot of that object to the other peers.