共用方式為


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 物件已被處置。

備註

引發這個事件時,應該檢查 物件上的 SubscribeCompletedEventArgs error 屬性,以判斷進程是否已 SubscribeAsync 順利完成。

呼叫這個方法需要 PermissionStateUnrestricted。 當對等共同作業會話開始時,就會建立此狀態。

適用於

另請參閱