StateMachineWorkflowInstance 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

表示管理当前实例的 StateMachineWorkflowActivity类。 此类不能被继承。

public ref class StateMachineWorkflowInstance sealed
public sealed class StateMachineWorkflowInstance
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class StateMachineWorkflowInstance
type StateMachineWorkflowInstance = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type StateMachineWorkflowInstance = class
Public NotInheritable Class StateMachineWorkflowInstance
继承
StateMachineWorkflowInstance
属性

注解

注释

此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的 Deprecated Types。

此类还提供针对当前实例的 StateMachineWorkflowActivity查询接口。 通过使用此类的实例,可以对此类进行各种查询 StateMachineWorkflowInstance

可以进行的典型查询如下所示:

  • 状态机的当前状态。

  • 可能从当前状态转换。

  • 状态机实例的转换历史记录。

  • 枚举状态机中的所有状态。

构造函数

名称 说明
StateMachineWorkflowInstance(WorkflowRuntime, Guid)
已过时.

初始化 StateMachineWorkflowInstance 类的新实例。

属性

名称 说明
CurrentState
已过时.

获取当前正在执行的 StateActivity

CurrentStateName
已过时.

获取当前 StateActivity的名称。

InstanceId
已过时.

获取指示 当前实例的 < a0 /> 的实例。

PossibleStateTransitions
已过时.

获取当前 StateActivity 可以进行的状态转换的集合。

StateHistory
已过时.

获取状态机工作流实例已转换到的状态活动的集合。

StateMachineWorkflow
已过时.

获取 . 的最新定义 StateMachineWorkflowActivity

States
已过时.

获取 . StateActivity中的类列表StateMachineWorkflow

WorkflowInstance
已过时.

获取当前 WorkflowInstance

方法

名称 说明
EnqueueItem(IComparable, Object, IPendingWork, Object)
已过时.

将消息发布到 .StateMachineWorkflowInstance

EnqueueItem(IComparable, Object)
已过时.

将消息发布到 .StateMachineWorkflowInstance

Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
SetState(StateActivity)
已过时.

提供到指定 StateActivity转换的转换。

SetState(String)
已过时.

使用指定的名称StateActivity提供转换到指定的StateActivity转换。

ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于