WorkflowChanges 類別

定義

警告

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

表示一組對執行中工作流程執行個體建議的變更。

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

範例

下列範例將示範如何建立 WorkflowChanges 物件的新執行個體。 這個範例來自<訂購狀態機器 SDK>範例。 如需詳細資訊,請參閱 排序狀態機器範例

// Create a new instance of the WorkflowChanges class for managing
// the in-memory changes to the workflow
WorkflowChanges changes = new WorkflowChanges(root);
' Create a new instance of the WorkflowChanges class for managing
' the in-memory changes to the workflow
Dim changes As New WorkflowChanges(root)

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

必須使用 WorkflowChanges 物件,對執行中的工作流程執行個體進行所有建議的變更。

當以應用程式程式碼建構 WorkflowChanges 物件時 (在工作流程執行個體之外),傳遞到建構函式的 Activity 物件必須是由 GetWorkflowDefinition 類別的 WorkflowInstance 方法傳回的物件。

建構函式

WorkflowChanges(Activity)
已淘汰.

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

欄位

ConditionProperty
已淘汰.

指定條件,也就是必須滿足才能套用 WorkflowChanges 的條件。

屬性

TransientWorkflow
已淘汰.

傳回複製的活動樹狀,變更會先對這個樹狀進行,然後再套用到執行中的工作流程執行個體。

方法

Equals(Object)
已淘汰.

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

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

在相依性物件上取得條件屬性。

GetHashCode()
已淘汰.

做為預設雜湊函式。

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

取得目前執行個體的 Type

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

建立目前 Object 的淺層複製。

(繼承來源 Object)
SetCondition(Object, Object)
已淘汰.

在相依性物件上設定條件屬性。

ToString()
已淘汰.

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

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

驗證目前的建議變更集,這些變更已對 TransientWorkflow 屬性表示的活動樹狀進行。

適用於

另請參閱