WorkflowInvoker Constructor (Activity)

.NET Framework (current version)

Initializes a new instance of the WorkflowInvoker class.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public WorkflowInvoker(
	Activity workflow


Type: System.Activities.Activity

The workflow definition of the workflow to be invoked by this instance of the WorkflowInvoker class.

WorkflowInvoker contains both instance and static methods for invoking workflows synchronously, and instance methods for invoking workflows asynchronously.

The following example invokes a workflow consisting of a single WriteLine activity.

Activity wf = new WriteLine
    Text = "Hello World."

WorkflowInvoker invoker = new WorkflowInvoker(wf);


.NET Framework
Available since 4.0
Return to top