다음을 통해 공유


WorkflowInstance.WorkflowRuntime 속성

정의

이 워크플로 인스턴스에 대한 WorkflowRuntime을 가져옵니다.

public:
 property System::Workflow::Runtime::WorkflowRuntime ^ WorkflowRuntime { System::Workflow::Runtime::WorkflowRuntime ^ get(); };
public System.Workflow.Runtime.WorkflowRuntime WorkflowRuntime { get; }
member this.WorkflowRuntime : System.Workflow.Runtime.WorkflowRuntime
Public ReadOnly Property WorkflowRuntime As WorkflowRuntime

속성 값

WorkflowRuntime

이 워크플로 인스턴스가 실행 중인 실행 환경을 나타내는 WorkflowRuntime입니다.

예제

다음 예제에서는 WorkflowRuntime 개체의 실행 중인 WorkflowInstance에 액세스하는 방법을 보여 줍니다.

// Create the main workflow runtime
WorkflowRuntime runtime = new WorkflowRuntime();
// Create a workflow instance
WorkflowInstance workflowInstance = runtime.CreateWorkflow(typeof(Workflow1));
// Obtain a reference to the instance's parent runtime
WorkflowRuntime runtime2 = workflowInstance.WorkflowRuntime;
' Create the main workflow runtime
Dim runtime As New WorkflowRuntime()
' Create a workflow instance
Dim workflowInstance As WorkflowInstance = runtime.CreateWorkflow(GetType(Workflow1))
' Obtain a reference to the instance's parent runtime
Dim runtime2 As WorkflowRuntime = workflowInstance.WorkflowRuntime

적용 대상