StateMachineWorkflowActivity.CurrentStateName Property

Gets the name of the currently executing StateActivity.

Namespace: System.Workflow.Activities
Assembly: System.Workflow.Activities (in system.workflow.activities.dll)

public string CurrentStateName { get; }
/** @property */
public String get_CurrentStateName ()

public function get CurrentStateName () : String

Not applicable.

Property Value

The name of the current StateActivity.

The CurrentStateName property only returns the name of the current state when accessed from within the workflow, for example, from a code handler in a CodeActivity activity. The property does not work from host-side code because the host only has access to a copy of the workflow definition, and never to the live instance tree.

For information about determining the current state from the host side, see the CurrentStateName property of the StateMachineWorkflowInstance class.

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

Community Additions