Redigera

Dela via


StateMachineWorkflowActivity.CurrentStateName Property

Definition

Gets the name of the currently executing StateActivity.

public:
 property System::String ^ CurrentStateName { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public string CurrentStateName { get; }
[<System.ComponentModel.Browsable(false)>]
member this.CurrentStateName : string
Public ReadOnly Property CurrentStateName As String

Property Value

The name of the current StateActivity.

Attributes

Remarks

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 code because the host only has access to a copy of the workflow definition, and never to the live instance tree.

For more information about how to determine the current state from the host, see the CurrentStateName property of the StateMachineWorkflowInstance class.

Applies to