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.

ContactManager::PresenceChanged Event

 

Raised whenever the presence status of a PeerContact in the ContactManager has changed.

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

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

Exception Condition
ObjectDisposedException

The PeerContact object has been disposed.

Before this event can be raised, the current user of the remote peer must subscribe to the collaboration events of the host peer. Subscription is accomplished via the Subscribe method.

This event requires a PermissionState of Unrestricted.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft