System.Workflow.Activities Namespace

提供與 Windows Workflow Foundation 活動相關的類別。 Provides classes related to Windows Workflow Foundation activities.

類別

ActiveDirectoryRole

表示 Windows Workflow Foundation 主控環境中的 Active Directory 角色。Represents an Active Directory role in a Windows Workflow Foundation hosting environment. 這個類別無法被繼承。This class cannot be inherited.

ActiveDirectoryRoleFactory

處理站類別,用於使用 Windows NT 別名、電子郵件地址和安全性識別碼 (SID) 建立 ActiveDirectoryRole 物件。A factory class for creating ActiveDirectoryRole objects from Windows NT aliases, email addresses, and security identifiers (SIDs).

CallExternalMethodActivity

定義工作流程通訊活動,用於呼叫本機服務上的方法。Defines a workflow communication activity that is used to call a method on a local service. 這個活動用於透過本機服務將資料從工作流程傳送到主機。This activity is used to send data from the workflow to the host through the local service.

CallExternalMethodActivityValidator

確認 CallExternalMethodActivity 類別已正確設定。Verifies that the CallExternalMethodActivity class is configured correctly.

ChannelToken

SendActivity 使用,以將自身與用戶端通道加以關聯。Used by a SendActivity to associate itself with a client-side channel.

CodeActivity

執行與活動相關聯之程式碼除外的方法。Runs the code-beside method associated with an activity. 這個類別無法被繼承。This class cannot be inherited.

CodeCondition

定義條件,這個條件會保護/驅動工作流程定義內某個活動的執行。Defines a condition that guards/drives the execution of a certain activity within a workflow definition. 它有 ConditionalEventArgs 型別的事件,可傳回條件的結果。It has an event of type ConditionalEventArgs to return the result of the condition.

CompensatableSequenceActivity

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

ConditionalEventArgs

傳回 CodeCondition 類別的結果資訊。Returns result information for the CodeCondition class. 這個類別無法被繼承。This class cannot be inherited.

ConditionedActivityGroup

為一組子活動提供條件約束執行內容的定義。Provides the definition of a constraint-based execution context for a set of child activities.

ContextToken

代表一個權杖,可用來指定內容,應使用此內容來將 ReceiveActivity 活動與該活動所通訊的用戶端之間的交換相互關聯。Represents a token that can be used to specify the context that should be used to correlate the exchange between a ReceiveActivity activity and the client that the activity is communicating with.

CorrelationAliasAttribute

當相互關聯值必須從不是由 CorrelationParameterAttribute 所指定的參數中取得時,則覆寫相互關聯參數值。Overrides the correlation parameter value when the correlation value must be obtained from a parameter other than that indicated by the CorrelationParameterAttribute. 這個類別無法被繼承。This class cannot be inherited.

CorrelationInitializerAttribute

指出 ExternalDataExchange 介面上的方法或事件,該介面會初始化相互關聯值。Indicates the method or event on an ExternalDataExchange interface that initializes the correlation value. 這個類別無法被繼承。This class cannot be inherited.

CorrelationParameterAttribute

指出參數名稱,該參數用於在 ExternalDataExchange 介面上所定義之方法和事件內的相互關聯。Indicates the name of the parameter used for correlation in the methods and events defined on an ExternalDataExchange interface. 這個類別無法被繼承。This class cannot be inherited.

DelayActivity

提供建立計時器和非同步等待計時器逾時的邏輯。Provides the logic to establish a timer and to wait, asynchronously, for timer's expiration. 這個類別無法被繼承。This class cannot be inherited.

EventDeliveryFailedException

當無法將從主應用程式引發的事件傳遞給工作流程執行個體時擲回的例外狀況。The exception that is thrown when an event that is raised from the host cannot be delivered to the workflow instance. 一般而言,事件是從工作流程執行個體上的 ExternalDataExchangeService 引發。Typically the event is raised from an ExternalDataExchangeService on a workflow instance. 這個類別無法被繼承。This class cannot be inherited.

EventDrivenActivity

包裝 Activity,其執行是由事件初始化。Wraps an Activity whose execution is initialized by an event. 這個類別無法被繼承。This class cannot be inherited.

EventHandlersActivity

複合活動,包含事件處理常式的集合。A composite activity that contains a collection of event handlers. 它通常用於必須處理事件集合的位置。It is typically used where a collection of events must be handled. 每個事件是由一個 EventDrivenActivity 處理,它是 EventHandlersActivity 的一部分。Each event is handled by one EventDrivenActivity, which is part of EventHandlersActivity.

EventHandlingScopeActivity

能夠透過執行子活動來處理事件。Enables event handling with the execution of the child activities. 這個類別無法被繼承。This class cannot be inherited.

EventQueueName

表示與 WorkflowInstance 上事件相關聯之佇列的名稱。Represents the name of a queue associated with an event on a WorkflowInstance. 這個類別無法被繼承。This class cannot be inherited.

ExternalDataEventArgs

表示當使用 HandleExternalEventActivity 活動引發事件時所傳送的資料。Represents the data sent when an event is raised using the HandleExternalEventActivity activity.

ExternalDataExchangeAttribute

將介面標記為本機服務介面。Marks an interface as a local service interface. 這個類別無法被繼承。This class cannot be inherited.

ExternalDataExchangeService

表示必須加入至工作流程執行階段引擎才能啟動本機服務通訊的服務。Represents a service that must be added to the workflow run-time engine for local services communications to be enabled. 本機服務實作必須加入至 ExternalDataExchangeService,這些服務才能適當地初始化和註冊。Local service implementations are required to be added to the ExternalDataExchangeService for these services to be properly initialized and registered.

ExternalDataExchangeServiceSection

表示組態區段,它可讓您在組態檔中指定要加入至 ExternalDataExchangeService 的執行個體中的一組服務。Represents a configuration section that allows you to specify, in a configuration file, a set of services to be added to an instance of ExternalDataExchangeService.

HandleExternalEventActivity

定義工作流程通訊活動,用於處理由本機服務引發的事件。Defines a workflow communication activity that is used to handle an event that is raised by a local service.

HandleExternalEventActivityValidator

確認 HandleExternalEventActivity 類別已正確設定。Verifies that the HandleExternalEventActivity class is configured correctly.

IfElseActivity

條件式執行 IfElseBranchActivity 型別中兩個以上活動的其中一個。Conditionally runs one of two or more activities of type IfElseBranchActivity. 這個類別無法被繼承。This class cannot be inherited.

IfElseBranchActivity

表示 IfElseActivity 的分支。Represents a branch of an IfElseActivity. 這個類別無法被繼承。This class cannot be inherited.

InvokeWebServiceActivity

透過 Proxy 類別叫用 Web 服務,此類別會依照指定方式傳遞與接收參數。Invokes a Web service through a proxy class, which passes and receives parameters as specified. 這個類別無法被繼承。This class cannot be inherited.

InvokeWebServiceEventArgs

包含用於叫用 Web 服務的事件資料。Contains event data used to invoke a Web service. 這個類別無法被繼承。This class cannot be inherited.

InvokeWorkflowActivity

非同步多個執行工作流程。Asynchronously runs one workflow from another. 這個類別無法被繼承。This class cannot be inherited.

ListenActivity

在工作流程等到其中一個可能的事件之後,活動才會繼續進行。Makes the workflow wait for any one of several possible events before the activity proceeds. 這個類別無法被繼承。This class cannot be inherited.

MessageEventSubscription

建立訊息事件訂閱,以便將訊息傳送至適當的工作流程執行個體。Creates a message event subscription to route messages to the appropriate workflow instance.

OperationInfo

代表工作流程服務中定義的合約作業之資訊。Represents the information for a contract operation defined in a workflow service.

OperationInfoBase

用來存放工作流程服務中定義的合約作業資訊之基底類別。The base class used for storing information for a contract operation defined in a workflow service.

OperationParameterInfo

包含作業參數的相關資訊。Contains information about an operation parameter.

OperationParameterInfoCollection

OperationParameterInfo 物件的集合。A collection of OperationParameterInfo objects.

OperationValidationEventArgs

提供 OperationValidation 事件的資料。Provides data for the OperationValidation event.

ParallelActivity

同時執行子活動集。Runs a set of child activities at the same time. 這個類別無法被繼承。This class cannot be inherited.

PolicyActivity

表示 Rule 類別執行個體的集合,這些執行個體會當做工作流程執行的一部分執行,以做為單一步驟或活動。Represents a collection of Rule class instances to be run as part of a workflow's execution as a single step or activity.

ReceiveActivity

服務活動,此活動會實作由 Windows Communication Foundation (WCF) 服務合約所定義的作業。Service activity that implements an operation defined by a Windows Communication Foundation (WCF) service contract.

ReplicatorActivity

執行子活動的多個執行個體。Runs multiple instances of a child activity.

ReplicatorChildEventArgs

包含 ReplicatorActivity 活動處理常式的事件引數,該處理常式除了會在初始化子 Activity 執行個體時呼叫外,還會在完成子 Activity 執行個體時呼叫。Contains event arguments for the ReplicatorActivity activity handlers called at initialization of child Activity instances in addition to when the child Activity instances are finished.

SendActivity

建立 Windows Communication Foundation (WCF) 服務作業同步版本之模型的用戶活動。Client activity that models the synchronous invocation of a Windows Communication Foundation (WCF) service operation.

SendActivityEventArgs

提供 BeforeSendAfterResponse 事件的資訊。Provides information for the BeforeSend and AfterResponse events.

SequenceActivity

根據單一定義的順序執行子活動集。Runs a set of child activities according to a single defined ordering.

SequentialWorkflowActivity

表示循序執行活動的工作流程。Represents a workflow that executes activities sequentially.

SetStateActivity

將轉換提供給狀態機器工作流程的 StateActivityProvides the transition to a StateActivity in a state machine workflow. 這個類別無法被繼承。This class cannot be inherited.

SetStateEventArgs

表示做為引數的類別,以設定 StateMachineWorkflowActivity 的狀態。Represents a class that is used as an argument to set the state of a StateMachineWorkflowActivity.

StateActivity

表示 StateMachineWorkflowActivity 中的狀態。Represents a state in a StateMachineWorkflowActivity.

StateActivityValidator

表示類別,這個類別會驗證是否已正確設定 StateActivityRepresents a class that verifies whether a StateActivity class is configured correctly.

StateFinalizationActivity

表示一個活動,該活動會先執行包含的活動,再轉換至狀態機器工作流程中的其他狀態。Represents an activity that executes contained activities before transitioning to another state in a state machine workflow. 這個類別無法被繼承。This class cannot be inherited.

StateInitializationActivity

做為活動群組的容器 (Container),這些活動會在 StateActivity 開始執行時執行。Acts as a container to a group of activities that is executed when the StateActivity starts running. 這個類別無法被繼承。This class cannot be inherited.

StateMachineWorkflowActivity

做為狀態機器工作流程的根容器。Serves as the root container for state machine workflows. 包含事件驅動的活動和狀態。Contains event-driven activities and states.

StateMachineWorkflowInstance

表示類別,這個類別可管理 StateMachineWorkflowActivity 的目前執行個體。Represents a class that manages the current instance of a StateMachineWorkflowActivity. 這個類別無法被繼承。This class cannot be inherited.

TypedOperationInfo

繼承自 OperationInfoOperationInfoBase 物件,可用於 SendActivityReceiveActivity 活動的服務作業資訊。An OperationInfo object that inherits from OperationInfoBase used for the service operation information of the SendActivity and ReceiveActivity activities. 請注意,這種作業資訊必須以 CLR 型別為基礎。Note that this operation information must be based on a CLR type.

WebServiceFaultActivity

能夠將錯誤從工作流程傳送至 Web 服務用戶端。Enables sending a fault to the Web service client from the workflow. 這個類別無法被繼承。This class cannot be inherited.

WebServiceInputActivity

能夠接收來自工作流程中 Web 服務的資料。Enables receiving data from a Web service in a workflow. 這個類別無法被繼承。This class cannot be inherited.

WebServiceOutputActivity

能夠將資料從工作流程傳送至 Web 服務。Enables sending data to a Web service from within a workflow. 這個類別無法被繼承。This class cannot be inherited.

WebWorkflowRole

表示受到 RoleProvider 支援的工作流程角色。Represents a Workflow role that is backed by a RoleProvider.

WhileActivity

只要某個條件為 true,即反覆執行子活動。Runs a child activity iteratively as long as a certain condition is true.

WorkflowAuthorizationException

當因為指定的身分識別未包含在 WorkflowRoleCollection之內,而導致角色驗證失敗時,會擲回例外狀況。The exception that is thrown when role validation fails due to a specified identity that is not contained in the WorkflowRoleCollection.

WorkflowRole

工作流程角色衍生自此抽象基底類別。The abstract base class from which workflow roles are derived.

WorkflowRoleCollection

表示 WorkflowRole 物件的集合。Represents a collection of WorkflowRole objects. 這個類別無法被繼承。This class cannot be inherited.

WorkflowServiceAttributes

建置工作流程服務所裝飾的服務行為。Builds the service behavior for the workflow service that it decorates.

WorkflowServiceAttributesDynamicPropertyValidator

WorkflowServiceAttributesProperty 使用的屬性驗證程式。The property validator used by the WorkflowServiceAttributesProperty.

WorkflowSubscriptionService

提供訂閱服務的方法,以管理工作流程執行階段的訂閱。Provides methods for a subscription service to manage subscriptions for a workflow runtime.

WorkflowWebService

表示所有工作流程 Web 服務的基底類別。Represents the base class for all workflow Web services.

介面

IEventActivity

提供事件驅動活動必須從其中衍生才能夠訂閱事件的方法和屬性。Provides methods and properties that event-driven activities must derive from, to subscribe to events.

列舉

ExecutionType

指定活動的執行模式。Specifies the execution mode for activities.