AsyncCodeActivity<TResult> Class

Definition

自始至终管理指定类型活动的异步代码活动的执行。Manages asynchronous code activity execution, for an activity of a specified type, from start to completion. 这是一个抽象的泛型类。This is an abstract and generic class.

generic <typename TResult>
public ref class AsyncCodeActivity abstract : System::Activities::Activity<TResult>
public abstract class AsyncCodeActivity<TResult> : System.Activities.Activity<TResult>
type AsyncCodeActivity<'Result> = class
    inherit Activity<'Result>
Public MustInherit Class AsyncCodeActivity(Of TResult)
Inherits Activity(Of TResult)

Type Parameters

TResult

此类处理的异步活动的类型。The type of the asynchronous activity that is handled by this class.

Inheritance
Derived

Constructors

AsyncCodeActivity<TResult>()

创建 AsyncCodeActivity 类的新实例。Creates a new instance of the AsyncCodeActivity class.

Properties

CacheId

获取缓存的标识符,该标识符在工作流定义的作用域内是唯一的。Gets the identifier of the cache that is unique within the scope of the workflow definition.

(Inherited from Activity)
Constraints

获取可配置的 Constraint 活动的集合,用于为 Activity 提供验证。Gets a collection of Constraint activities that can be configured to provide validation for the Activity.

(Inherited from Activity)
DisplayName

获取或设置用于调试、验证、异常处理和跟踪的可选友好名称。Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

(Inherited from Activity)
Id

获取一个标识符,该标识符在工作流定义的作用域内是唯一的。Gets an identifier that is unique in the scope of the workflow definition.

(Inherited from Activity)
Implementation

获取 null 或尝试设置此属性的值时引发错误。Gets null or throws an error when there is an attempt to set the value of this property.

ImplementationVersion

获取或设置活动的实现版本。Gets or sets the implementation version of the activity.

ImplementationVersion

获取或设置用于实现的版本。Gets or sets the version of the implementation used.

(Inherited from Activity)
Result

获取或设置 Activity<TResult> 的结果自变量。Gets or sets the result argument for the Activity<TResult>.

(Inherited from Activity<TResult>)
ResultType

在派生类中实现时,获取 OutArgument 活动的类型。When implemented in a derived class, gets the type of an activity OutArgument.

(Inherited from ActivityWithResult)

Methods

BeginExecute(AsyncCodeActivityContext, AsyncCallback, Object)

当在派生类中实现并使用指定的执行上下文、回调方法和用户状态时,将异步活动排入运行时工作流队列中。When implemented in a derived class and using the specified execution context, callback method, and user state, enqueues an asynchronous activity in a run-time workflow.

CacheMetadata(ActivityMetadata)

未实现。Not implemented. 请改用 CacheMetadata(CodeActivityMetadata)Use CacheMetadata(CodeActivityMetadata) instead.

CacheMetadata(CodeActivityMetadata)

用作虚拟方法并将通过缓存反射获取的信息转换为异步活动的自变量。Serves as a virtual method and converts information obtained by reflection on a cache into arguments for an asynchronous activity.

Cancel(AsyncCodeActivityContext)

当在派生类中实现并使用指定的执行环境信息时,通知工作流运行时异步活动操作已取消。When implemented in a derived class and using the specified execution environment information, notifies the workflow runtime that the asynchronous activity operation has been canceled. 此方法用作虚拟方法。This method serves as a virtual method.

EndExecute(AsyncCodeActivityContext, IAsyncResult)

当在派生类中实现并使用指定的执行环境信息时,通知工作流运行时关联异步活动操作已完成。When implemented in a derived class and using the specified execution environment information, notifies the workflow runtime that the associated asynchronous activity operation has completed.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

为动态更新创建映射时,将引发事件。Raises an event when creating a map for the dynamic update.

OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

创建动态更新映射时引发事件。Raises an event when creating dynamic update map.

(Inherited from Activity)
ShouldSerializeDisplayName()

指示是否应序列化 DisplayName 属性。Indicates whether the DisplayName property should be serialized.

(Inherited from Activity)
ToString()

返回包含 StringIdDisplayNameActivityReturns a String that contains the Id and DisplayName of the Activity.

(Inherited from Activity)

Applies to