CorrelationProperty 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

代表一對名稱與值對,用於將訊息與特定接收活動關聯起來。

public ref class CorrelationProperty
[System.Serializable]
public class CorrelationProperty
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class CorrelationProperty
[<System.Serializable>]
type CorrelationProperty = class
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type CorrelationProperty = class
Public Class CorrelationProperty
繼承
CorrelationProperty
屬性

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

CorrelationProperty 類別定義為 ActivityBind 工作流程連接服務活動的屬性。 預設情況下,這些屬性綁定在根工作流程活動中宣告的變數。 對於動態活動,例如 和 ReplicatorActivityConditionedActivityGroup ,其每個子節點無法共享一個普遍 CorrelationProperty 對象。 想像一個情境:A 內 ReplicatorActivity 的每個任務都必須管理自己的對話。 子 ReplicatorActivity 活動需要一個 CorrelationProperty 執行上下文或任務中唯一的實例。 為了達成此目標,你必須定義一個具有 CorrelationProperty 實例屬性的自訂活動,而 Workflow Connection Services 的活動必須綁定到這個屬性。

建構函式

名稱 Description
CorrelationProperty(String, Object)
已淘汰.

初始化 CorrelationProperty 類別的新執行個體。

屬性

名稱 Description
Name
已淘汰.

取得相關集合中所用性質的名稱。

Value
已淘汰.

取得相關集合性質的值。

方法

名稱 Description
Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()
已淘汰.

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

(繼承來源 Object)

適用於