Share via


CorrelationKey 類別

定義

表示一段應用程式資料與執行個體之間的關聯。

public ref class CorrelationKey sealed : System::Runtime::DurableInstancing::InstanceKey
public sealed class CorrelationKey : System.Runtime.DurableInstancing.InstanceKey
type CorrelationKey = class
    inherit InstanceKey
Public NotInheritable Class CorrelationKey
Inherits InstanceKey
繼承
CorrelationKey

備註

索引鍵資料通常是從使用一組包含於 MessageQuerySet 之查詢的訊息中取得。 然後,會使用索引鍵資料的雜湊產生 CorrelationKey。 以相互關聯來表示 CorrelationKey 與執行個體 ID 間的對應。

建構函式

CorrelationKey(IDictionary<String,String>, XName, XNamespace)

使用指定的索引鍵資料、範圍名稱和角色提供者,初始化 CorrelationKey 類別的新執行個體。

屬性

IsValid

取得值,這個值表示執行個體索引鍵是否有效。

(繼承來源 InstanceKey)
KeyData

取得索引鍵資料的字典。

KeyString

取得索引鍵資料的 String 表示。

Metadata

取得包含與執行個體索引鍵相關聯之中繼資料的字典。

(繼承來源 InstanceKey)
Name

取得或設定 CorrelationKey 的名稱。

Provider

取得提供者。

ScopeName

取得範圍名稱。

Value

取得與目前執行個體索引鍵相關聯的 GUID 值。

(繼承來源 InstanceKey)

方法

Equals(Object)

比較與目前物件相關聯的 GUID (儲存在 Value 屬性) 和與 InstanceKey 物件相關聯的 GUID。

(繼承來源 InstanceKey)
GetHashCode()

傳回目前 InstanceKey 物件之 GUID (儲存於 Value 屬性中) 的唯一雜湊程式碼。

(繼承來源 InstanceKey)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於