Redigera

Dela via


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);
[<System.Security.SecurityCritical>]
member this.GetPresenceInfo : System.Net.PeerToPeer.Collaboration.PeerEndPoint -> System.Net.PeerToPeer.Collaboration.PeerPresenceInfo
Public Function GetPresenceInfo (peerEndPoint As PeerEndPoint) As PeerPresenceInfo

Parameters

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.

Attributes

Exceptions

peerEndPoint does not contain a valid endpoint.

peerEndPoint is null.

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