ActivityExecutionContextManager.GetExecutionContext(Activity) 方法

定义

获取与指定的 ActivityExecutionContext 关联的 Activity

public:
 System::Workflow::ComponentModel::ActivityExecutionContext ^ GetExecutionContext(System::Workflow::ComponentModel::Activity ^ activity);
public System.Workflow.ComponentModel.ActivityExecutionContext GetExecutionContext (System.Workflow.ComponentModel.Activity activity);
member this.GetExecutionContext : System.Workflow.ComponentModel.Activity -> System.Workflow.ComponentModel.ActivityExecutionContext
Public Function GetExecutionContext (activity As Activity) As ActivityExecutionContext

参数

activity
Activity

指定的 Activity

返回

ActivityExecutionContext

与指定的 ActivityExecutionContext 关联的 Activity

例外

activity 为空引用(在 Visual Basic 中为 Nothing)。

注解

返回与指定的活动具有相同限定名的活动的第一个上下文。

适用于