Export (0) Print
Expand All

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
)

Parameters

configSectionName
Type: System.String

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

ExceptionCondition
ArgumentNullException

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

ArgumentException

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

InvalidOperationException

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, see WorkflowRuntimeSection.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft