ContactManager.CreateContact(PeerNearMe) 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.
Creates a PeerContact instance for the specified PeerNearMe object.
public:
System::Net::PeerToPeer::Collaboration::PeerContact ^ CreateContact(System::Net::PeerToPeer::Collaboration::PeerNearMe ^ peerNearMe);
[System.Security.SecurityCritical]
public System.Net.PeerToPeer.Collaboration.PeerContact CreateContact (System.Net.PeerToPeer.Collaboration.PeerNearMe peerNearMe);
[<System.Security.SecurityCritical>]
member this.CreateContact : System.Net.PeerToPeer.Collaboration.PeerNearMe -> System.Net.PeerToPeer.Collaboration.PeerContact
Public Function CreateContact (peerNearMe As PeerNearMe) As PeerContact
Parameters
- peerNearMe
- PeerNearMe
The PeerNearMe to associate with the new PeerContact instance.
Returns
A PeerContact instance for the specified PeerNearMe.
- Attributes
Exceptions
peerNearMe
is null
.
This PeerNearMe object has been disposed.
The contact manager of the remote peer passed in
peerNearMe
could not be reached, or the contact could not be read from it.The PeerNearMe instance passed in
peerNearMe
has no endpoints set on it.
Remarks
Calling this method requires a PermissionState of Unrestricted.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για