ContactManager.ObjectChanged 事件

定义

每当联系人注册的 PeerObject 对象中有对象发生更改时引发。Raised whenever an object within a contact's registered PeerObject objects has changed.

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

事件类型

EventHandler<ObjectChangedEventArgs>
属性

例外

PeerObject 对象已释放。The PeerObject 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. 订阅通过 PeerContact Subscribe 方法完成。Subscription is accomplished via the PeerContact Subscribe methods.

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

适用于

另请参阅