StateMachineWorkflowInstance Class
TOC
Collapse the table of content
Expand the table of content

StateMachineWorkflowInstance Class

 
Note: This API is now obsolete.

Represents a class that manages the current instance of a StateMachineWorkflowActivity. This class cannot be inherited.

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

System.Object
  System.Workflow.Activities.StateMachineWorkflowInstance

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class StateMachineWorkflowInstance

NameDescription
System_CAPS_pubmethodStateMachineWorkflowInstance(WorkflowRuntime, Guid)

Initializes a new instance of the StateMachineWorkflowInstance class.

NameDescription
System_CAPS_pubpropertyCurrentState

Gets the currently executing StateActivity.

System_CAPS_pubpropertyCurrentStateName

Gets the name of the current StateActivity.

System_CAPS_pubpropertyInstanceId

Gets the Guid that indicates the current instance of the StateMachineWorkflowActivity.

System_CAPS_pubpropertyPossibleStateTransitions

Gets a collection of state transitions that the current StateActivity can make.

System_CAPS_pubpropertyStateHistory

Gets a collection of state activities that the state machine workflow instance has transitioned through.

System_CAPS_pubpropertyStateMachineWorkflow

Gets the latest definition of the StateMachineWorkflowActivity.

System_CAPS_pubpropertyStates

Gets a list of StateActivity classes in the StateMachineWorkflow.

System_CAPS_pubpropertyWorkflowInstance

Gets the current WorkflowInstance.

NameDescription
System_CAPS_pubmethodEnqueueItem(IComparable, Object)

Posts a message to the StateMachineWorkflowInstance.

System_CAPS_pubmethodEnqueueItem(IComparable, Object, IPendingWork, Object)

Posts a message to the StateMachineWorkflowInstance.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSetState(StateActivity)

Provides a transition to a specified StateActivity.

System_CAPS_pubmethodSetState(String)

Provides a transition to a specified StateActivity using the name of the StateActivity.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_noteNote

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

This class also provides the query interface over the current instance of the StateMachineWorkflowActivity. By using an instance of this class, you can make various queries on the StateMachineWorkflowInstance.

Typical queries that can be made are as follows:

  • Current state of the state machine.

  • Possible transitions from the current state.

  • History of transitions for the state machine instance.

  • Enumeration of all the states in the state machine.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft