Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PreviousStateName Property

StateMachineWorkflowActivity.PreviousStateName Property

Gets the name of the previously executed StateActivity.

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

public string PreviousStateName { get; }
/** @property */
public String get_PreviousStateName ()

public function get PreviousStateName () : String

Not applicable.

Property Value

The name of the previous StateActivity.

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

For information on determining the previous state from the host side, see the StateHistory 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

ADD
Show:
© 2015 Microsoft