PeerNearMe.CreateFromPeerEndPoint Method (PeerEndPoint)

 

Generates a PeerNearMe object from the provided PeerEndPoint.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

[SecurityCriticalAttribute]
public static PeerNearMe CreateFromPeerEndPoint(
	PeerEndPoint peerEndPoint
)

Parameters

peerEndPoint
Type: System.Net.PeerToPeer.Collaboration.PeerEndPoint

PeerEndPoint object that specifies the endpoint associated with the peer.

Return Value

Type: System.Net.PeerToPeer.Collaboration.PeerNearMe

PeerNearMe object associated with the PeerEndPoint.

Exception Condition
ArgumentNullException

The peerEndPoint is null.

PeerToPeerException

The referenced EndPoint specifies null.

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

.NET Framework
Available since 3.5
Return to top
Show: