ContactManager.GetContact(PeerName) Método

Definición

Devuelve el objeto PeerContact para el PeerName especificado.Returns the PeerContact object for the specified PeerName.

public:
 System::Net::PeerToPeer::Collaboration::PeerContact ^ GetContact(System::Net::PeerToPeer::PeerName ^ peerName);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerContact GetContact (System.Net.PeerToPeer.PeerName peerName);
[<System.Security.SecurityCritical>]
member this.GetContact : System.Net.PeerToPeer.PeerName -> System.Net.PeerToPeer.Collaboration.PeerContact
Public Function GetContact (peerName As PeerName) As PeerContact

Parámetros

peerName
PeerName

PeerName asociado al objeto PeerContact que se va a recuperar.The PeerName associated with the PeerContact to be retrieved.

Devoluciones

PeerContact

PeerContact asociado al objeto PeerName proporcionado.PeerContact associated with the supplied PeerName.

Atributos

Excepciones

peerName es null.peerName is null.

El objeto PeerName se ha eliminado.This PeerName object has been disposed.

- El contacto no se encontró en ContactManager.- Contact not found in ContactManager.

- No se puede obtener el contacto para el PeerNameproporcionado.- Unable to obtain the contact for the supplied PeerName.

Comentarios

La llamada a este método requiere un PermissionState de Unrestricted .Calling this method requires a PermissionState of Unrestricted.

Se aplica a

Consulte también