PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
[<System.Security.SecurityCritical>]
static member CreateFromPeerEndPoint : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerNearMe
Public Shared Function CreateFromPeerEndPoint (peerEndPoint As PeerEndPoint) As PeerNearMe
Parameters
- peerEndPoint
- PeerEndPoint
PeerEndPoint object that specifies the endpoint associated with the peer.
Returns
PeerNearMe object associated with the PeerEndPoint.
- Attributes
Exceptions
The peerEndPoint
is null
.
The referenced EndPoint specifies null
.
Remarks
If the provided PeerEndPoint does not map to a signed-in peer on the same subnet, null
is returned.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.