System.Workflow.Activities 命名空间

提供类,与 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

包装其执行由某一事件初始化的 ActivityWraps 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. 若要正确地初始化和注册这些服务,必需将本地服务实现添加到 ExternalDataExchangeServiceLocal 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

通过代理类调用 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

提供向状态机工作流中 StateActivity 的转换。Provides 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

表示一个类,该类验证 StateActivity 类是否已正确配置。Represents 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

作为将在 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.