Export (0) Print
Expand All

PeerNearMe.CreateFromPeerEndPoint Method

Generates a PeerNearMe object from the provided PeerEndPoint.

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

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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft