Export (0) Print
Expand All

WorkflowRuntime.Name Property

Gets or sets the name associated with the WorkflowRuntime.

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

public string Name { get; set; }

Property Value

Type: System.String
The name associated with this WorkflowRuntime.


An attempt to set Name on a WorkflowRuntime that is disposed occurs.


An attempt to set Name while the workflow run-time engine is running occurs.

You cannot set Name while the workflow run-time engine is running (IsStarted is true).

The following example demonstrates how to access the Name property of a WorkflowRuntime object. In this example, the name of the runtime is set to "Main Runtime".

// Create a new WorkflowRuntime
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
// Assign a name to the runtime
workflowRuntime.Name = "Main Runtime";

.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.

© 2014 Microsoft