Freigeben über


XboxLiveEndpointPair.FindEndpointPairByHostNamesAndPorts Methode

Definition

Sucht nach einem vorhandenen XboxLiveEndpointPair-instance, sofern vorhanden, dem Datenverkehr von einem ersten Host und Port zu einem zweiten Host und Port zugeordnet ist.

Verwenden Sie diese Methode, um rückwärts vom eingehenden Datenverkehr an die XboxLiveEndpointPair zu arbeiten, die diesem Datenverkehr zugeordnet ist.

Wichtig

Diese API ist nicht für alle Apps verfügbar. Sofern Ihr Entwicklerkonto nicht speziell von Microsoft bereitgestellt wird, schlagen Aufrufe dieser APIs zur Laufzeit fehl.

public:
 static XboxLiveEndpointPair ^ FindEndpointPairByHostNamesAndPorts(HostName ^ localHostName, Platform::String ^ localPort, HostName ^ remoteHostName, Platform::String ^ remotePort);
 static XboxLiveEndpointPair FindEndpointPairByHostNamesAndPorts(HostName const& localHostName, winrt::hstring const& localPort, HostName const& remoteHostName, winrt::hstring const& remotePort);
public static XboxLiveEndpointPair FindEndpointPairByHostNamesAndPorts(HostName localHostName, string localPort, HostName remoteHostName, string remotePort);
function findEndpointPairByHostNamesAndPorts(localHostName, localPort, remoteHostName, remotePort)
Public Shared Function FindEndpointPairByHostNamesAndPorts (localHostName As HostName, localPort As String, remoteHostName As HostName, remotePort As String) As XboxLiveEndpointPair

Parameter

localHostName
HostName

Der HostName des lokalen Endes des Endpunktpaars.

localPort
String

Platform::String

winrt::hstring

Die Portnummer des lokalen Endes des Endpunktpaars.

remoteHostName
HostName

Der HostName des Remoteendes des Endpunktpaars.

remotePort
String

Platform::String

winrt::hstring

Die Portnummer des Remoteendes des Endpunktpaars.

Gibt zurück

Der XboxLiveEndpointPair , der den angegebenen Endpunkten entspricht, oder ein NULL-Zeiger, wenn kein solches Endpunktpaar gefunden wird.

Gilt für: