ContactManager.GetContact(PeerName) 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.
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
Parameters
- peerName
- PeerName
The PeerName associated with the PeerContact to be retrieved.
Returns
PeerContact associated with the supplied PeerName.
- Attributes
Exceptions
peerName
is null
.
This PeerName object has been disposed.
Contact not found in ContactManager.
Unable to obtain the contact for the supplied PeerName.
Remarks
Calling this method requires a PermissionState of Unrestricted.
Applies to
See also
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про