ContactManager.CreateContactCompleted 事件

定义

每当 CreateContact(PeerNearMe) 方法完成时引发。Raised whenever a CreateContact(PeerNearMe) method has completed.

public:
 event EventHandler<System::Net::PeerToPeer::Collaboration::CreateContactCompletedEventArgs ^> ^ CreateContactCompleted;
public event EventHandler<System.Net.PeerToPeer.Collaboration.CreateContactCompletedEventArgs> CreateContactCompleted;
member this.CreateContactCompleted : EventHandler<System.Net.PeerToPeer.Collaboration.CreateContactCompletedEventArgs> 
Public Custom Event CreateContactCompleted As EventHandler(Of CreateContactCompletedEventArgs) 

事件类型

EventHandler<CreateContactCompletedEventArgs>

例外

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

注解

当方法完成时,将引发此事件 CreateContactAsyncThis event is raised when the CreateContactAsync method has completed. 如果 ContactManager 操作在错误或被取消时完成,也会引发此错误。It is also raised if the ContactManager operation completes in error or is cancelled.

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

适用于

另请参阅