ContactManager.CreateContact(PeerNearMe) ContactManager.CreateContact(PeerNearMe) ContactManager.CreateContact(PeerNearMe) Method

Definition

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);
member this.CreateContact : System.Net.PeerToPeer.Collaboration.PeerNearMe -> System.Net.PeerToPeer.Collaboration.PeerContact

Parameters

peerNearMe
PeerNearMe PeerNearMe PeerNearMe

The PeerNearMe to associate with the new PeerContact instance.

Returns

A PeerContact instance for the specified PeerNearMe.

Exceptions

  • 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