Peer.GetPresenceInfo(PeerEndPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour