ContactManager.NameChanged 事件

定义

每当与 PeerName 中的 PeerContact 关联的 ContactManager 发生更改时引发。Raised whenever the PeerName associated with a PeerContact in the ContactManager has changed.

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

例外

已释放调用对象。The calling object has been disposed.

注解

关联的回调提供对新 PeerName的引用。The associated callback provides a reference to the new PeerName.

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

适用于

另请参阅