ContactManager.GetContact(PeerName) Method
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
- peerName
- PeerName
The PeerName associated with the PeerContact to be retrieved.
PeerContact associated with the supplied PeerName.
- Attributes
peerName
is null
.
This PeerName object has been disposed.
Contact not found in ContactManager.
Unable to obtain the contact for the supplied PeerName.
Calling this method requires a PermissionState of Unrestricted.
Produkt | Versioner |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: