PeerNearMe.AddToContactManager Method

Definition

Generates a PeerContact from a PeerNearMe object and associates it with the ContactManager.

Overloads

AddToContactManager()

Generates a PeerContact from the PeerNearMe object and associates it with the ContactManager.

AddToContactManager(String, String, MailAddress)

Generates a PeerContact with the associated descriptive parameters from the PeerNearMe object and associates it with the ContactManager.

AddToContactManager()

Generates a PeerContact from the PeerNearMe object and associates it with the ContactManager.

public System.Net.PeerToPeer.Collaboration.PeerContact AddToContactManager ();

Returns

PeerContact object associated with the PeerEndPoint.

Exceptions

The Collaboration infrastructure has failed to create and associate a PeerContact with the ContactManager.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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

AddToContactManager(String, String, MailAddress)

Generates a PeerContact with the associated descriptive parameters from the PeerNearMe object and associates it with the ContactManager.

public System.Net.PeerToPeer.Collaboration.PeerContact AddToContactManager (string displayName, string nickname, System.Net.Mail.MailAddress emailAddress);

Parameters

displayName
String

The display name assigned to the newly created contact.

nickname
String

The nickname to assign to the newly created contact.

emailAddress
MailAddress

MailAddress object that specifies the email address to assign to the newly created contact.

Returns

PeerContact object associated with a PeerNearMe containing descriptive parameters.

Exceptions

The Collaboration infrastructure has failed to create or update a PeerContact with the ContactManager.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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