SecureDeviceAssociation.GetAssociationByHostNamesAndPorts Method

Retrieves the SecureDeviceAssociation object identified by a specified combination of local and remote hosts and ports.

Returns the previously established Secure Device Association for the given combination of remote and local address and port tuples.

Syntax

public:
static SecureDeviceAssociation^ GetAssociationByHostNamesAndPorts(
         HostName^ remoteHostName,
         String^ remotePort,
         HostName^ localHostName,
         String^ localPort
)  

Parameters

remoteHostName
Type: HostName 

Hostname of the remote host.

remotePort
Type: String 

  Port number on the remote host.

localHostName
Type: HostName 

Hostname of the local host.

localPort
Type: String 

  Port number on the local host.

Return value

Type: SecureDeviceAssociation 

The SecureDeviceAssociation

Requirements

Namespace: Windows.Xbox.Networking

Metadata: windows.winmd

See also

Reference

SecureDeviceAssociation Class

SecureDeviceAssociation Members

Windows.Xbox.Networking Namespace