PeerNameRecord PeerNameRecord PeerNameRecord PeerNameRecord Class

定义

定义构成对等名称记录对象的一组值。Defines the set of values that form a peer name record object. 此记录包括对等名称以及与之通信的终结点集合等项。This record includes items such as the peer name and the collection of endpoints with which it communicates. 对等名称记录用于定义 Cloud 中的各个对等节点。Peer name records are used to define the individual peer nodes within a Cloud.

public ref class PeerNameRecord : System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerNameRecord : System.Runtime.Serialization.ISerializable
type PeerNameRecord = class
    interface ISerializable
Public Class PeerNameRecord
Implements ISerializable
继承
PeerNameRecordPeerNameRecordPeerNameRecordPeerNameRecord
属性
实现

注解

PeerNameRecord对象用于定义中的Cloud各个节点或对等方。PeerNameRecord objects are used to define individual nodes or peers within a Cloud. 对等名称记录对象将有关对等方的所有信息都封装Cloud到 PNRP 中, 包括其名称。A peer name record object encapsulates all information published about a peer into a PNRP Cloud, including its name. PeerNameRecord 类旨在与PeerNameResolver类一起使用。The PeerNameRecord class is designed for use with the PeerNameResolver class.

构造函数

PeerNameRecord() PeerNameRecord() PeerNameRecord() PeerNameRecord()

初始化 PeerNameRecord 类的新默认实例。Initializes a new default instance of the PeerNameRecord class.

PeerNameRecord(SerializationInfo, StreamingContext) PeerNameRecord(SerializationInfo, StreamingContext) PeerNameRecord(SerializationInfo, StreamingContext) PeerNameRecord(SerializationInfo, StreamingContext)

初始化 PeerNameRecord 类的新默认实例。Initializes a new default instance of the PeerNameRecord class.

属性

Comment Comment Comment Comment

获取或设置有关 PeerNameRecord 对象的其他信息。Gets or sets additional information about the PeerNameRecord object.

Data Data Data Data

获取或设置 PeerNameRecord 对象的应用程序定义的二进制数据。Gets or sets application-defined binary data for the PeerNameRecord object.

EndPointCollection EndPointCollection EndPointCollection EndPointCollection

获取 PeerEndPointCollection 对象,该对象包含可供与此 PeerNameRecord 对象关联的对等方使用的所有终结点。Gets an PeerEndPointCollection object that contains all the endpoints available to the peer associated with this PeerNameRecord object.

PeerName PeerName PeerName PeerName

获取或设置此 PeerName 对象中的 PeerNameRecordGets or sets the PeerName within this PeerNameRecord object. 对等名称是用于标识对等资源的字符串。A peer name is a string used to identify a peer resource.

方法

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

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

使用序列化 PeerNameRecord 时所需的数据填充序列化信息对象。Populates a serialization information object with the data needed to serialize the PeerNameRecord.

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

获取当前实例的 TypeGets the Type of the current instance.

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

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

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

实现 ISerializable 接口,并返回序列化 PeerNameRecord 实例所需的数据。Implements the ISerializable interface and returns the data needed to serialize the PeerNameRecord instance.

适用于

另请参阅