ActivityExecutionContextManager.CreateExecutionContext(Activity) 方法

定义

为指定的 ActivityExecutionContext 创建 Activity

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

参数

activity
Activity

指定的 Activity

返回

ActivityExecutionContext

为指定的 ActivityExecutionContext 所创建的 Activity

例外

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

activity 不是此上下文所有者的有效子活动。

适用于