PeerNameRegistration 類別

定義

在一個 PeerName 或一組 Cloud 中註冊 CloudRegisters a PeerName in a Cloud or set of clouds.

public ref class PeerNameRegistration : IDisposable, System::Runtime::Serialization::ISerializable
[System.Serializable]
public class PeerNameRegistration : IDisposable, System.Runtime.Serialization.ISerializable
type PeerNameRegistration = class
    interface IDisposable
    interface ISerializable
Public Class PeerNameRegistration
Implements IDisposable, ISerializable
繼承
PeerNameRegistration
屬性
實作

備註

註冊會建立 (或更新) 與對等雲端或雲端中PeerName的相關聯的所有資訊。Registration creates (or updates) all the information that is associated with a PeerName in a peer cloud or clouds.

相同的對等名稱可以PeerNameRegistration有多個物件。It is possible to have multiple PeerNameRegistration objects for the same peer name. 在這種情況下, 如果對等名稱是安全的, 則PeerNameRegistration每個實例都代表不同的雲端。In such a case, if the peer name is secured, each instance represents PeerNameRegistration in a different cloud. 不過, 如果對等名稱未受到保護, 則可以多次在相同的雲端中註冊, 以提供每個註冊來自不同的進程。However, if the peer name is not secured, it can be registered in the same cloud multiple times, providing that each registration is from a different process.

建構函式

PeerNameRegistration()

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

PeerNameRegistration(PeerName, Int32)

使用指定的名稱和連接埠號碼初始化 PeerNameRegistration 類別的新執行個體。Initializes a new instance of the PeerNameRegistration class with the specified name and port number.

PeerNameRegistration(PeerName, Int32, Cloud)

使用指定的對等名稱、連接埠號碼和 Cloud,初始化 PeerNameRegistration 類別的新執行個體。Initializes a new instance of the PeerNameRegistration class with the specified peer name, port number, and Cloud.

PeerNameRegistration(SerializationInfo, StreamingContext)

初始化一個新可序列化 PeerNameRegistration 物件。Initializes a new serializable PeerNameRegistration object.

屬性

Cloud

取得或設定 Cloud 中的資訊,這個 PeerName 物件會於其中加以註冊。Gets or sets information in a Cloud into which this PeerName object will be registered.

Comment

取得或設定將向 PeerName 註冊的 Cloud 物件的其他資訊。Gets or sets additional information about the PeerName object that will be registered with the Cloud.

Data

取得或設定 PeerNameRegistration 物件的應用程式定義之二進位資料。Gets or sets application-defined binary data for the PeerNameRegistration object.

EndPointCollection

取得相關聯的對等名稱要註冊之網路端點的集合。Gets the collection of network endpoints for which the associated peer name is registered.

PeerName

取得或設定要向對等 Cloud 註冊的對等名稱。Gets or sets the peer name to register with a peer cloud.

Port

取得或設定 TCP/IP 通訊埠編號,這是由註冊至 PeerNameRegistration 物件的對等節點所使用的通訊埠。Gets or sets the TCP/IP port number used by the peer being registered into the PeerNameRegistration object.

UseAutoEndPointSelection

取得或設定值,指定周遊對等網狀結構或 Cloud 時,是否要使用自動端點選取。Gets or sets a value that specifies whether to use automatic endpoint selection when traversing a peer mesh or Cloud.

方法

Dispose()

釋放由 PeerNameRegistration 物件使用的所有資源。Releases all resources used by the PeerNameRegistration object.

Dispose(Boolean)

釋放 Unmanaged 資源,並選擇性釋放 PeerNameRegistration 物件所使用的 Managed 資源。Releases the unmanaged resources and optionally releases the managed resources used by the PeerNameRegistration object.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetObjectData(SerializationInfo, StreamingContext)

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

GetType()

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

(繼承來源 Object)
IsRegistered()

取得或設定 PeerName 屬性中指定的對等名稱,是否向主應用程式上的特定 Cloud 註冊。Gets or sets whether the peer name specified in the PeerName property is registered with a specific Cloud on a host.

MemberwiseClone()

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

(繼承來源 Object)
Start()

PeerName 註冊到 CloudRegisters the PeerName into the Cloud. 如果未指定 EndPointCollection,則會使用自動位址選取搭配 Port 屬性指定的連接埠值。If no EndPointCollection is specified, automatic address selection is used with the port value specified by the Port property.

Stop()

從已註冊的所有雲端中取消註冊 PeerName 屬性中指定的對等名稱。Unregisters the peer name specified in the PeerName property from all the clouds in which it was registered.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
Update()

針對已使用特定 Cloud 註冊的節點,更新 PeerNameRegistrationUpdates the PeerNameRegistration for a node registered with a specific Cloud. 更新是使用屬性中指定的資訊來執行。Update is performed using the information specified in the properties.

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

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

適用於