PeerContact.SubscribeCompleted イベント

定義

サブスクリプション操作が完了したときに発生します。Raised when a subscription operation has completed.

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) 

イベントの種類

EventHandler<SubscribeCompletedEventArgs>

例外

この PeerContact オブジェクトは破棄されました。This PeerContact object has been disposed.

注釈

このイベントが発生したときに、オブジェクトの error プロパティを調べて、 SubscribeCompletedEventArgs プロセスが SubscribeAsync 正常に完了したかどうかを確認する必要があります。When this event is raised, the error property on the SubscribeCompletedEventArgs object should be examined to determine whether the SubscribeAsync process completed successfully.

このメソッドを呼び出すには、のが必要です PermissionState UnrestrictedCalling this method requires a PermissionState of Unrestricted. この状態は、ピアコラボレーションセッションの開始時に作成されます。This state is created when the peer collaboration session begins.

適用対象

こちらもご覧ください