ContactManager.PresenceChanged 事件

定义

每当 PeerContactContactManager 中的状态发生更改时引发。Raised whenever the presence status of a PeerContact in the ContactManager has changed.

public:
 event EventHandler<System::Net::PeerToPeer::Collaboration::PresenceChangedEventArgs ^> ^ PresenceChanged;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public event EventHandler<System.Net.PeerToPeer.Collaboration.PresenceChangedEventArgs> PresenceChanged;
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
member this.PresenceChanged : EventHandler<System.Net.PeerToPeer.Collaboration.PresenceChangedEventArgs> 
Public Custom Event PresenceChanged As EventHandler(Of PresenceChangedEventArgs) 

事件类型

EventHandler<PresenceChangedEventArgs>
属性

例外

PeerContact 对象已释放。The PeerContact object has been disposed.

注解

在引发此事件之前,远程对等方的当前用户必须订阅主机对等节点的协作事件。Before this event can be raised, the current user of the remote peer must subscribe to the collaboration events of the host peer. 订阅通过 Subscribe 方法完成。Subscription is accomplished via the Subscribe method.

此事件需要 PermissionStateUnrestrictedThis event requires a PermissionState of Unrestricted.

适用于

另请参阅