WorkflowRuntime Constructor (String)


Initializes a new instance of the WorkflowRuntime class by using the specified section of the application configuration file.

Namespace:   System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public WorkflowRuntime(
	string configSectionName


Type: System.String

The name of a valid workflowSettings section in the application configuration file.

Exception Condition

configSectionName is a null reference (Nothing in Visual Basic).


A valid workflowSettings section could not be found in the application configuration file.


A WorkflowRuntime already exists for this application domain.

The WorkflowRuntime is initialized according to the settings in the section specified by configSectionName in the application configuration file. configSectionName must correspond to a valid workflowSettings section of a configuration file.

When the workflow run-time engine is configured by using an application configuration file, it loads and instantiates classes of the types listed in the Services section of the configuration file. When the workflow run-time engine constructs these classes it looks for class constructors with the following signatures in the following order:

  1. Service(WorkflowRuntime runtime, NameValueCollection parameters)

  2. Service(WorkflowRuntime runtime)

  3. Service(NameValueCollection parameters)

  4. Service()

All service classes that are loaded from a configuration file must implement at least one of these constructor signatures.

For more information, seeWorkflowRuntimeSection.

.NET Framework
Available since 3.0
Return to top