PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) Metodo

Definizione

Genera un oggetto PeerNearMe a partire dall'oggetto PeerEndPoint fornito.Generates a PeerNearMe object from the provided PeerEndPoint.

public:
 static System::Net::PeerToPeer::Collaboration::PeerNearMe ^ CreateFromPeerEndPoint(System::Net::PeerToPeer::Collaboration::PeerEndPoint ^ peerEndPoint);
[System.Security.SecurityCritical]
public static System.Net.PeerToPeer.Collaboration.PeerNearMe CreateFromPeerEndPoint (System.Net.PeerToPeer.Collaboration.PeerEndPoint peerEndPoint);
static member CreateFromPeerEndPoint : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerNearMe

Parametri

peerEndPoint
PeerEndPoint

Oggetto PeerEndPoint che specifica l'endpoint associato al peer.PeerEndPoint object that specifies the endpoint associated with the peer.

Restituisce

Oggetto PeerNearMe associato all'oggetto PeerEndPoint.PeerNearMe object associated with the PeerEndPoint.

Attributi

Eccezioni

L'elemento peerEndPoint è null.The peerEndPoint is null.

L'oggetto EndPoint a cui si fa riferimento specifica null.The referenced EndPoint specifies null.

Commenti

Se l'oggetto PeerEndPoint specificato non viene mappato a un peer connesso nella stessa subnet, null viene restituito.If the provided PeerEndPoint does not map to a signed-in peer on the same subnet, null is returned.

Si applica a