ContactManager.GetContact(PeerName) Metodo

Definizione

Restituisce l'oggetto PeerContact relativo all'oggetto PeerName specificato.

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

Parametri

peerName
PeerName

Oggetto PeerName associato all'oggetto PeerContact da recuperare.

Restituisce

Oggetto PeerContact associato all'oggetto PeerName fornito.

Attributi

Eccezioni

peerName è null.

L'oggetto PeerName è stato eliminato.

Commenti

La chiamata a questo metodo richiede un PermissionState oggetto .Unrestricted

Si applica a

Vedi anche