PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) Method

Definition

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

Parameters

peerEndPoint
PeerEndPoint PeerEndPoint PeerEndPoint

PeerEndPoint object that specifies the endpoint associated with the peer.

Returns

Exceptions

Remarks

If the provided PeerEndPoint does not map to a signed-in peer on the same subnet, null is returned.

Applies to