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:
property String^ Name {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name associated with this WorkflowRuntime.

Exception Condition
ObjectDisposedException

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

InvalidOperationException

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: