ActivityExecutionContext 类

定义

注意

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

表示 Activity 的执行环境。 此类不能被继承。

public ref class ActivityExecutionContext sealed : IDisposable, IServiceProvider
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
Public NotInheritable Class ActivityExecutionContext
Implements IDisposable, IServiceProvider
继承
ActivityExecutionContext
属性
实现

注解

注意

本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型

表示 Activity 的执行环境。 此类有选择地向单个活动公开工作流运行时的功能和服务。 此类不能被继承。

有关详细信息,请参阅 了解活动执行上下文

字段

CurrentExceptionProperty
已过时.

表示在工作流实例的执行期间发生的异常。 只有当活动处于出错状态时,此属性才会有值。

属性

Activity
已过时.

获取当前在此执行上下文中执行的 Activity

ContextGuid
已过时.

获取关联 ContextIDActivity

ExecutionContextManager
已过时.

获取与此实例关联的 ActivityExecutionContextManager

方法

CancelActivity(Activity)
已过时.

由复合活动调用,用于计划子活动的取消。 工作流运行时禁止取消未处于 Executing 状态的子活动。

CloseActivity()
已过时.

向工作流运行时指示:当前正在执行的活动应转换为 Closed 状态。

Equals(Object)
已过时.

确定指定对象是否等于当前对象。

(继承自 Object)
ExecuteActivity(Activity)
已过时.

由复合活动调用,用于计划子活动的执行。 工作流运行时禁止执行未处于已初始化状态的子活动。

GetHashCode()
已过时.

作为默认哈希函数。

(继承自 Object)
GetService(Type)
已过时.

返回指定类型的服务。

GetService<T>()
已过时.

返回指定的 Type 的服务提供程序。

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()
已过时.

返回表示当前对象的字符串。

(继承自 Object)
TrackData(Object)
已过时.

为关联的 Activity 调用跟踪方法。

TrackData(String, Object)
已过时.

为关联的 Activity 调用跟踪方法。

显式接口实现

IDisposable.Dispose()
已过时.

释放由 ActivityExecutionContext 使用的所有资源。

适用于