Peer.GetPresenceInfo(PeerEndPoint) Peer.GetPresenceInfo(PeerEndPoint) Peer.GetPresenceInfo(PeerEndPoint) Method

Definition

Gets the available presence information for a PeerEndPoint.

public:
 System::Net::PeerToPeer::Collaboration::PeerPresenceInfo ^ GetPresenceInfo(System::Net::PeerToPeer::Collaboration::PeerEndPoint ^ peerEndPoint);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerPresenceInfo GetPresenceInfo (System.Net.PeerToPeer.Collaboration.PeerEndPoint peerEndPoint);
member this.GetPresenceInfo : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerPresenceInfo

Parameters

peerEndPoint
PeerEndPoint PeerEndPoint PeerEndPoint

The PeerEndPoint for which to retrieve presence information.

Returns

A PeerPresenceInfo object which contains presence information for an available endpoint if it is available; otherwise, null.

Exceptions

peerEndPoint does not contain a valid endpoint.

This object has been disposed and cannot be used in current peer operations.

An error occurred while retrieving presence information from the peer.

Remarks

Presence information includes status descriptors such as online, offline, and away.

Calling this method requires a PermissionState of Unrestricted.

Applies to

See also