PeerContact::SubscribeCompleted Event


Raised when a subscription operation has completed.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

event EventHandler<SubscribeCompletedEventArgs^>^ SubscribeCompleted {
	void add(EventHandler<SubscribeCompletedEventArgs^>^ value);
	void remove(EventHandler<SubscribeCompletedEventArgs^>^ value);

Exception Condition

This PeerContact object has been disposed.

When this event is raised, the error property on the SubscribeCompletedEventArgs object should be examined to determine whether the SubscribeAsync process completed successfully.

Calling this method requires a PermissionState of Unrestricted. This state is created when the peer collaboration session begins.

.NET Framework
Available since 3.5
Return to top