Peer.GetPresenceInfo(PeerEndPoint) Método

Definição

Obtém as informações de presença disponíveis para um PeerEndPoint.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

Parâmetros

peerEndPoint
PeerEndPoint

O PeerEndPoint para o qual recuperar as informações de presença.The PeerEndPoint for which to retrieve presence information.

Retornos

PeerPresenceInfo

Um objeto PeerPresenceInfo que contém informações de presença para um ponto de extremidade disponível, se estiver disponível. Caso contrário, null.A PeerPresenceInfo object which contains presence information for an available endpoint if it is available; otherwise, null.

Atributos

Exceções

peerEndPoint não contém um ponto de extremidade válido.peerEndPoint does not contain a valid endpoint.

peerEndPoint é null.peerEndPoint is null.

Este objeto foi descartado e não pode ser usado em operações de par atuais.This object has been disposed and cannot be used in current peer operations.

Erro ao recuperar as informações de presença do par.An error occurred while retrieving presence information from the peer.

Comentários

As informações de presença incluem descritores de status como online, offline e ausente.Presence information includes status descriptors such as online, offline, and away.

Chamar esse método requer um PermissionState de Unrestricted .Calling this method requires a PermissionState of Unrestricted.

Aplica-se a

Confira também