Sdílet prostřednictvím


WorkflowInstance.WorkflowRuntime Vlastnost

Definice

WorkflowRuntime Získá pro tuto instanci pracovního postupu.

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

Hodnota vlastnosti

WorkflowRuntime

A WorkflowRuntime , které představuje spouštěcí prostředí, ve kterém je tato instance pracovního postupu spuštěna.

Příklady

Následující příklad ukazuje přístup k provádění WorkflowRuntime objektu 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

Platí pro