PeerNearMe::CreateFromPeerEndPoint Method (PeerEndPoint^)
.NET Framework (current version)
Generates a PeerNearMe object from the provided PeerEndPoint.
Assembly: System.Net (in System.Net.dll)
public: [SecurityCriticalAttribute] 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
Available since 3.5
Show: