Share via


XboxLiveEndpointPair.RemotePort Property

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to