Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PeerContact::SubscribeCompleted Event

 

Raised when a subscription operation has completed.

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

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

Exception Condition
ObjectDisposedException

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
Show:
© 2017 Microsoft