SecureDeviceAssociation.LocalPort Property

Retrieves the port string of the local socket.

Syntax

public:
property String^ LocalPort {
         String^ get ();
}  

Property value

Type: String 

 The port string of the local socket.

Remarks

This value will be zero if the Xbox Secure Device Association Template allowed dynamically-assigned port numbers in its corresponding SecureDeviceSocketDescription. In this case, the title will have to determine the local port number through other means.

The local port number returned by this property is only valid on the calling device; to retrieve the local network identity for use by remote peers, create a local SecureDeviceAddress object and use its Buffer property to retrieve a serialized data block.

Requirements

Namespace: Windows.Xbox.Networking

Metadata: windows.winmd

See also

Reference

SecureDeviceAssociation Class

SecureDeviceAssociation Members

Windows.Xbox.Networking Namespace