PeerName.CreateRelativePeerName(PeerName, String) PeerName.CreateRelativePeerName(PeerName, String) PeerName.CreateRelativePeerName(PeerName, String) Method

Definition

Creates a new PeerName by replacing the Classifier field defined on the supplied PeerName object with the specified classifier string value.

public:
 static System::Net::PeerToPeer::PeerName ^ CreateRelativePeerName(System::Net::PeerToPeer::PeerName ^ peerName, System::String ^ classifier);
[System.Security.SecurityCritical]
public static System.Net.PeerToPeer.PeerName CreateRelativePeerName (System.Net.PeerToPeer.PeerName peerName, string classifier);
static member CreateRelativePeerName : System.Net.PeerToPeer.PeerName * string -> System.Net.PeerToPeer.PeerName

Parameters

peerName
PeerName PeerName PeerName

The PeerName object on which to set the new classifier string value.

classifier
String String String

The Classifier to set on the returned PeerName.

Returns

The new PeerName object that contains the updated classifier.

Exceptions

The String provided is not a valid peer name classifier.

Remarks

The Classifier is appended to the existing Authority portion of the PeerName. This string is no more than 149 characters long, including the null terminator. Specify null to return the peer name of the identity.

Applies to

See also