Condividi tramite


WorkflowInstance.WorkflowRuntime Proprietà

Definizione

Ottiene la classe WorkflowRuntime per questa istanza del flusso di lavoro.

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

Valore della proprietà

WorkflowRuntime

Una classe WorkflowRuntime che rappresenta l'ambiente di esecuzione nel quale è in esecuzione questa istanza del flusso di lavoro.

Esempio

Nell'esempio riportato di seguito viene illustrato l'accesso e l'esecuzione di una classe WorkflowRuntime di un oggetto 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

Si applica a