แก้ไข

แชร์ผ่าน


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);
[<System.Security.SecurityCritical>]
static member CreateRelativePeerName : System.Net.PeerToPeer.PeerName * string -> System.Net.PeerToPeer.PeerName
Public Shared Function CreateRelativePeerName (peerName As PeerName, classifier As String) As PeerName

Parameters

peerName
PeerName

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

classifier
String

The Classifier to set on the returned PeerName.

Returns

The new PeerName object that contains the updated classifier.

Attributes

Exceptions

The String provided is not a valid peer name classifier.

One or more parameters are null.

A PeerName could not be created from the supplied PeerHostName

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