Peer.GetPresenceInfo(PeerEndPoint) 方法

定義

取得 PeerEndPoint 的可用狀態資訊。

public:
 System::Net::PeerToPeer::Collaboration::PeerPresenceInfo ^ GetPresenceInfo(System::Net::PeerToPeer::Collaboration::PeerEndPoint ^ peerEndPoint);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerPresenceInfo GetPresenceInfo (System.Net.PeerToPeer.Collaboration.PeerEndPoint peerEndPoint);
[<System.Security.SecurityCritical>]
member this.GetPresenceInfo : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerPresenceInfo
Public Function GetPresenceInfo (peerEndPoint As PeerEndPoint) As PeerPresenceInfo

參數

peerEndPoint
PeerEndPoint

要擷取其狀態資訊的 PeerEndPoint

傳回

PeerPresenceInfo

包含可用端點目前狀態資訊的 PeerPresenceInfo 物件 (如果有的話);否則為 null

屬性

例外狀況

peerEndPoint 不包含有效的端點。

peerEndPointnull

這個物件已處置,且不能使用於目前的對等作業。

從對等電腦擷取狀態資訊時發生錯誤。

備註

目前狀態資訊包括狀態原因項,例如線上、離線和離開。

呼叫這個方法需要 PermissionStateUnrestricted

適用於

另請參閱