PeerNearMe.CreateFromPeerEndPoint(PeerEndPoint) 方法
定义
从提供的 PeerNearMe 生成 PeerEndPoint 对象。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
参数
- peerEndPoint
- PeerEndPoint
PeerEndPoint 对象,它指定与对等方关联的终结点。PeerEndPoint object that specifies the endpoint associated with the peer.
返回
与 PeerNearMe 关联的 PeerEndPoint 对象。PeerNearMe object associated with the PeerEndPoint.
- 属性
例外
peerEndPoint 为 null。The peerEndPoint is null.
注解
如果提供的未 PeerEndPoint 映射到同一子网上的已登录对等方, null 则返回。If the provided PeerEndPoint does not map to a signed-in peer on the same subnet, null is returned.