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
屬性
實作

備註

ACloud是一組可以透過網路彼此通訊的節點。A Cloud is a set of nodes that can communicate with each other through the network. 雲端、 對等網狀結構和對等項目-圖形的意義相同。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. 這會以序列化 Cloud 物件所需的資料,填入序列化資訊物件。This populates a serialization information object with the data needed to serialize the Cloud object.

欄位

AllLinkLocal AllLinkLocal AllLinkLocal AllLinkLocal

傳回 Cloud 的參考,代表用戶端或對等目前參與的所有連結本機 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 的靜態參考,代表用戶端目前參與的所有可用 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 執行個體,內含全域 (網際網路) 範圍對等。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)

在兩個 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()

取得呼叫的對等已知的對等 Cloud 集合。Obtains a collection of peer clouds known to the calling peer.

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

傳回具有指定之 Cloud 名稱的 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 的淺層複本 (Shallow Copy)。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.

適用於

另請參閱