PeerName Class
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.
Specifies the values that define a peer-to-peer PeerName object. A peer name is typically a string used to identify a peer resource.
public ref class PeerName : IEquatable<System::Net::PeerToPeer::PeerName ^>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerName : IEquatable<System.Net.PeerToPeer.PeerName>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type PeerName = class
interface ISerializable
interface IEquatable<PeerName>
Public Class PeerName
Implements IEquatable(Of PeerName), ISerializable
- Inheritance
-
PeerName
- Attributes
- Implements
Constructors
PeerName(SerializationInfo, StreamingContext) |
Populates a SerializationInfo object with the data needed to serialize the PeerName. |
PeerName(String) |
Initializes a new object of type PeerName with the supplied fully qualified peer name String value. |
PeerName(String, PeerNameType) |
Initializes a new instance of the PeerName class. |
Properties
Authority |
Returns a string that specifies the Authority used by this PeerName object. |
Classifier |
Returns a string that contains the classifier for a peer-to-peer PeerName. |
IsSecured |
Gets a Boolean value that specifies whether this is a secured peer name. |
PeerHostName |
Gets the name of the peer-to-peer host. This is a DNS-encoded version of the PeerName which is equivalent to a PeerHostName in that they are both identifiers. The difference between the two is visual representation. |
Methods
CreateFromPeerHostName(String) |
Creates a new instance of the specified PeerHostName object with the specified peer host name. |
CreateRelativePeerName(PeerName, String) |
Creates a new PeerName by replacing the Classifier field defined on the supplied PeerName object with the specified classifier string value. |
Equals(Object) |
Determines whether the content of this PeerName is equal to the content of another object. |
Equals(PeerName) |
Performs a case-sensitive comparison of the current PeerName and the specified peer name. |
GetHashCode() |
Overrides the GetHashCode() method. |
GetObjectData(SerializationInfo, StreamingContext) |
Populates a serialization information object with the data needed to serialize the PeerName. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string representation of the current PeerName object. |
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
Implements the ISerializable interface and returns the data needed to serialize the PeerName instance. |
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應