Cloud Cloud Cloud Cloud Class

定义

指定用来定义对等 Cloud 对象的值。Specifies the values that define a Peer Cloud object.

public ref class Cloud : IEquatable<System::Net::PeerToPeer::Cloud ^>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class Cloud : IEquatable<System.Net.PeerToPeer.Cloud>, System.Runtime.Serialization.ISerializable
type Cloud = class
    interface ISerializable
    interface IEquatable<Cloud>
Public Class Cloud
Implements IEquatable(Of Cloud), ISerializable
继承
CloudCloudCloudCloud
属性
实现

注解

Cloud是一组可通过网络相互通信的节点。A Cloud is a set of nodes that can communicate with each other through the network. Cloud、对等网格和对等图是同义词。Cloud, peer mesh, and peer-to-peer graph are synonymous. 单个对等机或节点可以连接到多个云。A single peer or node may be connected to more than one cloud.

节点之间的通信绝不能从一个云跨越至另一个云。Communication between nodes should never cross from one cloud to another. Cloud 实例由其名称(区分大小写)唯一标识。A Cloud instance is uniquely identified by its name, which is case-sensitive.

云与网络接口紧密相关。Clouds are tied very closely to network interfaces. 在有两个网卡附加到不同子网的一个多宿主计算机上,将返回三个云:每个接口的每个链接本地地址有一个云,还有一个全局范围云。On a multi-homed machine with two network cards attached to different subnets, three clouds will be returned: one for each of the link local addresses per interface, and a single global scope cloud.

构造函数

Cloud(SerializationInfo, StreamingContext) Cloud(SerializationInfo, StreamingContext) Cloud(SerializationInfo, StreamingContext) Cloud(SerializationInfo, StreamingContext)

初始化 PNRP Cloud 类型的新实例。Initializes a new instance of the PNRP Cloud type. 这会使用序列化云对象所需的数据填充序列化信息对象。This populates a serialization information object with the data needed to serialize the Cloud object.

字段

AllLinkLocal AllLinkLocal AllLinkLocal AllLinkLocal

返回对 Cloud(表示客户端或对等方当前参与的所有链接本地群)的引用。Returns a reference to a Cloud which represents all the link-local clouds in which the client or peer is currently participating.

Available Available Available Available

返回对 Cloud(表示客户端当前参与的所有可用的群)的静态引用。Returns a static reference to a Cloud which represents all the available clouds in which the client is currently participating.

属性

Global Global Global Global

获取一个 Cloud 实例,其中包含全局 (Internet) 范围的对等方。Gets a Cloud instance that contains globally (internet) scoped peers.

Name Name Name Name

获取对等 Cloud 的名称。Gets the name of the peer Cloud.

Scope Scope Scope Scope

获取对等 Cloud 的网络范围。Gets the network scope of the peer Cloud.

ScopeId ScopeId ScopeId ScopeId

获取此对等 Cloud 的特定 IP 地址的标识符。Gets the identifier of a specific IP address for this peer Cloud.

方法

Equals(Cloud) Equals(Cloud) Equals(Cloud) Equals(Cloud)

在两个群对象之间执行区分大小写的比较。Performs a case-sensitive comparison between two cloud objects.

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

确定此对等 Cloud 的内容是否与 System 对象的内容等效。Determines whether the content of this peer Cloud is equivalent to the content of a System object.

GetAvailableClouds() GetAvailableClouds() GetAvailableClouds() GetAvailableClouds()

获取调用对等方已知的对等群的集合。Obtains a collection of peer clouds known to the calling peer.

GetCloudByName(String) GetCloudByName(String) GetCloudByName(String) GetCloudByName(String)

返回具有指定群名称的 Cloud 对象。Returns the Cloud object with the specified cloud name.

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

重写 GetHashCode()Overrides GetHashCode().

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

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

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()

返回当前 Cloud 的字符串表示形式。Returns a string representation of the current Cloud.

显式界面实现

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

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

适用于

另请参阅