This documentation is archived and is not being maintained.

ManualWorkflowSchedulerService.RunWorkflow Method

Runs the specified workflow instance.

Namespace: System.Workflow.Runtime.Hosting
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

public bool RunWorkflow (
	Guid workflowInstanceId
public boolean RunWorkflow (
	Guid workflowInstanceId
public function RunWorkflow (
	workflowInstanceId : Guid
) : boolean
Not applicable.



The Guid for the workflow instance to run.

Return Value

Returns true if the workflow starts running; otherwise, false.

Exception typeCondition


workflowInstanceId is an empty GUID.

This is a synchronous call that uses the current thread to run the workflow. It does not return until the workflow idles, suspends, completes, terminates, or aborts.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0