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;
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
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.
此事件需要 PermissionState 的 Unrestricted 。This event requires a PermissionState of Unrestricted.