PeerName PeerName PeerName PeerName Class

定義

指定定義對等 PeerName 物件的值。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
type PeerName = class
    interface ISerializable
    interface IEquatable<PeerName>
Public Class PeerName
Implements IEquatable(Of PeerName), ISerializable
繼承
PeerNamePeerNamePeerNamePeerName
屬性
實作

建構函式

PeerName(SerializationInfo, StreamingContext) PeerName(SerializationInfo, StreamingContext) PeerName(SerializationInfo, StreamingContext) PeerName(SerializationInfo, StreamingContext)

將序列化 PeerName 所需要的資料填入 SerializationInfo 物件中。Populates a SerializationInfo object with the data needed to serialize the PeerName.

PeerName(String) PeerName(String) PeerName(String) PeerName(String)

使用提供的完整對等名稱 String 值初始化 PeerName 類型的新物件。Initializes a new object of type PeerName with the supplied fully qualified peer name String value.

PeerName(String, PeerNameType) PeerName(String, PeerNameType) PeerName(String, PeerNameType) PeerName(String, PeerNameType)

初始化 PeerName 類別的新執行個體。Initializes a new instance of the PeerName class.

屬性

Authority Authority Authority Authority

傳回字串,指定這個 Authority 物件所使用的 PeerNameReturns a string that specifies the Authority used by this PeerName object.

Classifier Classifier Classifier Classifier

傳回字串,內含對等 PeerName 的 Classifier。Returns a string that contains the classifier for a peer-to-peer PeerName.

IsSecured IsSecured IsSecured IsSecured

取得布林值,指定這是否為受保護的對等名稱。Gets a Boolean value that specifies whether this is a secured peer name.

PeerHostName PeerHostName PeerHostName PeerHostName

取得對等主機的名稱。Gets the name of the peer-to-peer host. 這是 DNS 編碼的 PeerName,相當於 PeerHostName,因為兩者都是識別項。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.

方法

CreateFromPeerHostName(String) CreateFromPeerHostName(String) CreateFromPeerHostName(String) CreateFromPeerHostName(String)

使用指定的對等主應用程式名稱,建立指定之 PeerHostName 物件的新執行個體。Creates a new instance of the specified PeerHostName object with the specified peer host name.

CreateRelativePeerName(PeerName, String) CreateRelativePeerName(PeerName, String) CreateRelativePeerName(PeerName, String) CreateRelativePeerName(PeerName, String)

以指定的 Classifier 字串值,取代提供的 PeerName 物件上所定義的 Classifier 欄位,以建立新的 PeerNameCreates a new PeerName by replacing the Classifier field defined on the supplied PeerName object with the specified classifier string value.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷這個 PeerName 的內容是否等於另一個物件的內容。Determines whether the content of this PeerName is equal to the content of another object.

Equals(PeerName) Equals(PeerName) Equals(PeerName) Equals(PeerName)

在目前 PeerName 和指定的對等名稱之間執行區分大小寫的比較。Performs a case-sensitive comparison of the current PeerName and the specified peer name.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

覆寫 GetHashCode() 方法。Overrides the GetHashCode() method.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

以序列化 PeerName 所需的資料,填入序列化資訊物件。Populates a serialization information object with the data needed to serialize the PeerName.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回目前 PeerName 物件的字串表示。Returns a string representation of the current PeerName object.

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

實作 ISerializable 介面,並傳回序列化 PeerName 執行個體所需的資料。Implements the ISerializable interface and returns the data needed to serialize the PeerName instance.

適用於

另請參閱