PeerCollaboration.LocalPresenceInfo 屬性

定義

取得或設定在 PeerCollaboration 基礎結構中,呼叫的對等電腦的顯示狀態。Gets or sets the presence for the calling peer within the PeerCollaboration infrastructure.

public:
 static property System::Net::PeerToPeer::Collaboration::PeerPresenceInfo ^ LocalPresenceInfo { System::Net::PeerToPeer::Collaboration::PeerPresenceInfo ^ get(); void set(System::Net::PeerToPeer::Collaboration::PeerPresenceInfo ^ value); };
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public static System.Net.PeerToPeer.Collaboration.PeerPresenceInfo LocalPresenceInfo { get; set; }
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.LocalPresenceInfo : System.Net.PeerToPeer.Collaboration.PeerPresenceInfo with get, set
Public Shared Property LocalPresenceInfo As PeerPresenceInfo

屬性值

PeerPresenceInfo

PeerPresenceInfo,內含已註冊 PeerCollaboration 工作階段之呼叫對等電腦的顯示狀態資訊。The PeerPresenceInfo that contains presence information for the calling peer that has registered for a PeerCollaboration session.

屬性

例外狀況

PeerPresenceInfo 無法指定 nullPeerPresenceInfo cannot specify null

- PeerPresenceStatus 已離線- PeerPresenceStatus is offline - 無法設定 PeerPresenceInfo- Unable to set PeerPresenceInfo

備註

呼叫這個方法需要 PermissionStateUnrestrictedCalling this method requires a PermissionState of Unrestricted. 此狀態會在共同 Peer 作業會話開始時建立。This state is created when the Peer collaboration session begins.

適用於

另請參閱