System.Workflow.ComponentModel 命名空間

提供與 Windows Workflow Foundation 元件模型相關的類別。 Provides classes related to the Windows Workflow Foundation component model.

類別

Activity

表示工作流程的基本建置組塊。Represents the fundamental building block of workflows. Activity 是所有活動的基底類別。Activity is the base class for all activities.

ActivityBind

繫結活動的屬性至屬性、欄位、索引子、方法、事件或其他活動的屬性。Binds an activity's property to a property, field, indexer, method, event, or another activity's property. 這個類別無法被繼承。This class cannot be inherited.

ActivityChangeAction

表示對執行中工作流程執行個體內 CompositeActivity 的建議變更。Represents a proposed change to a CompositeActivity within a running workflow instance. 這個類別必須被繼承。This class must be inherited.

ActivityCollection

形成 ICollection 型別其強型別 Activity 的模型。Models a strongly typed ICollection of type Activity.

ActivityCollectionChangeEventArgs

表示每當 ActivityCollection 的內容變更時,事件處理常式執行自訂處理所需的資訊。Represents the information needed by an event handler to perform custom processing whenever the contents of an ActivityCollection changes.

ActivityCondition

表示運算式的抽象類別,該運算式會評估為 BooleanRepresents an abstract class for an expression, which evaluates to a Boolean. 這個類別必須被繼承。This class must be inherited.

ActivityExecutionContext

表示 Activity 的執行環境。Represents the execution environment of an Activity. 這個類別無法被繼承。This class cannot be inherited.

ActivityExecutionContextManager

允許 CompositeActivity 建立並管理其子活動的執行內容。Allows a CompositeActivity to create and manage execution contexts for its child activities. 這個類別無法被繼承。This class cannot be inherited.

ActivityExecutionStatusChangedEventArgs

保留與 Activity 的執行狀態事件變更相關的資訊。Holds information relating to the change of execution status event for an Activity. 這個類別無法被繼承。This class cannot be inherited.

AddedActivityAction

表示建議將 Activity 加入執行中工作流程執行個體內的 CompositeActivityRepresents a proposed addition of an Activity to a CompositeActivity within a running workflow instance.

AlternateFlowActivityAttribute

自訂屬性,這個屬性指出活動支援替代流程。Custom attribute which indicates that the activity supports an alternative flow. 這個類別無法被繼承。This class cannot be inherited.

CancellationHandlerActivity

表示可與 CompositeActivity 相關聯的取消邏輯。Represents cancellation logic that can be associated with a CompositeActivity. 這個類別無法被繼承。This class cannot be inherited.

CompensatableTransactionScopeActivity

定義 TransactionScopeActivity 活動的可補償版本。Defines a compensatable version of the TransactionScopeActivity activity. 這個類別無法被繼承。This class cannot be inherited.

CompensateActivity

觸發已完成子 Activity 的補償,該子代會實作 ICompensatableActivity 介面。Triggers the compensation of a completed child Activity that implements the ICompensatableActivity interface. 這個類別無法被繼承。This class cannot be inherited.

CompensationHandlerActivity

指定復原或補償相關聯 CompositeActivity 其成功執行的工作流程邏輯。Specifies workflow logic that undoes, or compensates for, the successful execution of the associated CompositeActivity. 這個類別無法被繼承。This class cannot be inherited.

CompositeActivity

Activity 的衍生,為所有包含其他活動之活動的基底類別。Derivative of Activity that is the base class for all activities that contain other activities. CompositeActivity 負責管理其子活動的執行。A CompositeActivity is responsible for managing the execution of its child activities.

DependencyObject

所有具相依性屬性之物件的基底類別。The base class for all objects that have dependency properties. 這個類別必須被繼承。This class must be inherited.

DependencyProperty

一種特殊的屬性,可被定義或附加至 DependencyObjectA special kind of property that can be defined or attached to a DependencyObject. 有三種相依性屬性:執行個體屬性、中繼屬性和附加屬性。There are three kinds of dependency properties: instance properties, meta properties, and attached properties. 這個類別無法被繼承。This class cannot be inherited.

FaultHandlerActivity

表示活動類別,此類別用於處理由 Exception 屬性所指定型別的 FaultTypeRepresents the activity class used to handle an Exception of the type specified by the FaultType property. 這個類別無法被繼承。This class cannot be inherited.

FaultHandlersActivity

代表 CompositeActivity,其擁有 FaultHandlerActivity 型別其子活動的已排序清單。Represents a CompositeActivity that has an ordered list of child activities of type FaultHandlerActivity. 這個類別無法被繼承。This class cannot be inherited.

PersistOnCloseAttribute

指出當配置的活動完成其執行時,必須保存目前的工作流程執行個體。Indicates that the current workflow instance must be persisted when the adorned activity completes its execution. 這個類別無法被繼承。This class cannot be inherited.

PropertyMetadata

表示相依性屬性的行為。Represents the behavior of a dependency property.

QueueEventArgs

表示與工作流程佇列相關之事件的事件引數。Represents the event arguments for a workflow queue-related event.

RemovedActivityAction

表示建議將 Activity 從執行中工作流程執行個體內的 CompositeActivity 中移除。Represents a proposed removal of an Activity from a CompositeActivity within a running workflow instance.

SuspendActivity

執行時暫止執行中工作流程執行個體。Suspends the running workflow instance when executed. 這個類別無法被繼承。This class cannot be inherited.

SynchronizationScopeActivity

表示需要對共用變數進行控制存取的工作流程區段。Represents a section of workflow that requires controlled access to shared variables. 如果 SynchronizationScopeActivity 有兩個以上的執行個體存取同一個變數,則這些活動的執行會有效的序列化。If two or more instances of a SynchronizationScopeActivity access the same variables, then the execution of these activities is effectively serialized. 這個類別無法被繼承。This class cannot be inherited.

TerminateActivity

異常狀況發生時,結束執行中的工作流程執行個體。Terminates the running workflow instance when an abnormal situation occurs. 這個類別無法被繼承。This class cannot be inherited.

ThrowActivity

擲回例外狀況的模型。Models the throwing of an exception. 這個類別無法被繼承。This class cannot be inherited.

TransactionScopeActivity

可區分異動界限的工作流程區段。A section of workflow which demarcates a transaction boundary. 當這個 Transaction 開始執行時,啟動新的 Activity,當 Activity 成功關閉時,便認可該交易。A new Transaction is started when this Activity begins executing and the transaction commits when the Activity closes successfully. 這個類別無法被繼承。This class cannot be inherited.

WorkflowChangeAction

抽象基底類別,所有表示對執行中工作流程執行個體之建議變更的類別必須衍生自此抽象基底類別。An abstract base class from which all classes that represent proposed changes to a running workflow instance must derive.

WorkflowChanges

表示一組對執行中工作流程執行個體建議的變更。Represents a set of proposed changes to a running workflow instance.

WorkflowParameterBinding

一般用途的類別,代表與具名參數的繫結。A general-purpose class that represents a binding to a named parameter. 這個類別無法被繼承。This class cannot be inherited.

WorkflowParameterBindingCollection

代表 KeyedCollection<TKey,TItem> 型別的 WorkflowParameterBindingRepresents a KeyedCollection<TKey,TItem> of type WorkflowParameterBinding. 這個類別無法被繼承。This class may not be inherited.

WorkflowTerminatedException

代表當終止工作流程時引發的 ExceptionRepresents the Exception that is raised when a workflow is terminated. 這個類別無法被繼承。This class cannot be inherited.

WorkflowTransactionOptions

工作流程異動型別選項的容器。Container for workflow transaction type options. 這個類別無法被繼承。This class cannot be inherited.

介面

IActivityEventListener<T>

定義接聽事件的物件介面。Defines the interface for an object that listens for an event.

ICompensatableActivity

定義可被補償之 Activity 所需的介面。Defines the interface required by an Activity that can be compensated.

IDynamicPropertyTypeProvider

將屬性型別提供給繫結基礎結構。Provides a property type to the bind infrastructure. 它是由包含變數型別之屬性的活動所實作,其中的型別會視其他活動設定而改變。It is implemented by activities that contain a property of variable type, where the type can vary depending on other activity settings.

IStartWorkflow

定義為了開始新的工作流程執行個體之目的,從 ActivityExecutionContext 中取得的服務。Defines a service that can be obtained from an ActivityExecutionContext for the purpose of starting a new workflow instance.

IWorkflowChangeDiff

支援採擷工作流程變更。Supports mining of workflow changes.

列舉

ActivityCollectionChangeAction

代表列舉可允許的動作,這些動作可以在 ActivityCollection 上執行,它通常代表 CompositeActivity 所有子活動的集合。Represents an enumeration of the permissible actions which may be performed on an ActivityCollection, which typically represents the collection of all child activities of a CompositeActivity.

ActivityExecutionResult

列舉活動結果值,如此可符合具有 ClosedActivityActivityExecutionStatus 狀態。Enumeration of activity result values that qualifies the state of an Activity that has an ActivityExecutionStatus of Closed.

ActivityExecutionStatus

列舉活動狀態值,這個值對應到執行中工作流程執行個體內活動的生命週期。Enumeration of activity status values that correspond to the life cycle of an activity within a running workflow instance.

DependencyPropertyOptions

代表 DependencyProperty 選項的列舉型別。Represents an enumeration of DependencyProperty options.

委派

GetValueOverride

允許與在相依性物件上定義的相依性屬性相關聯之 GetValue(DependencyProperty) 邏輯的自訂覆寫。Allows a custom override of the GetValue(DependencyProperty) logic associated with a dependency property that is defined on a dependency object.

SetValueOverride

允許與在相依性物件上定義的相依性屬性相關聯之 SetValue(DependencyProperty, Object) 邏輯的自訂覆寫。Allows a custom override of the SetValue(DependencyProperty, Object) logic associated with a dependency property that is defined on a dependency object.