PeerName.CreateRelativePeerName(PeerName, String) 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 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
- 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.