PeerContact.SubscribeCompleted 事件

定义

在完成订阅操作时引发。

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

事件类型

例外

已释放 PeerContact 对象。

注解

引发此事件时,应检查 对象的 error 属性 SubscribeCompletedEventArgs ,以确定进程是否已 SubscribeAsync 成功完成。

调用此方法需要 PermissionStateUnrestricted。 此状态是在对等协作会话开始时创建的。

适用于

另请参阅