TrackingWorkflowEvent 枚举



此 API 现已过时。

指定工作流状态事件的类型。Specifies a type of workflow status event.

public enum class TrackingWorkflowEvent
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public enum TrackingWorkflowEvent
type TrackingWorkflowEvent = 
Public Enum TrackingWorkflowEvent


Aborted 10

工作流实例已中止。The workflow instance has aborted.

Changed 11

工作流实例上发生了工作流更改。A workflow change has occurred on the workflow instance.

Completed 1

工作流实例已完成。The workflow instance has completed.

Created 0

已创建工作流实例。The workflow instance has been created.

Exception 8

发生了未经处理的异常。An unhandled exception has occurred.

Idle 2

工作流实例处于空闲状态。The workflow instance is idle.

Loaded 7

已将工作流实例加载到内存中。The workflow instance has been loaded into memory.

Persisted 5

已保留工作流实例。The workflow instance has been persisted.

Resumed 4

先前挂起的工作流实例已继续运行。A previously suspended workflow instance has resumed running.

Started 12

工作流实例已启动。The workflow instance has been started.

Suspended 3

工作流实例已挂起。The workflow instance has been suspended.

Terminated 9

工作流实例已终止。The workflow instance has been terminated.

Unloaded 6

已从内存中卸载了工作流实例。The workflow instance has been unloaded from memory.



本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

工作流实例在其执行过程中可能会经过若干状态。A workflow instance can pass through several states during the course of its execution. 例如,工作流实例可能会变为空闲状态,或可能被挂起。For example, a workflow instance may become idle, or it may be suspended. 工作流实例每次更改状态时都会向运行时跟踪基础结构发出一个工作流状态事件。Every time the workflow instance changes state, it emits a workflow status event to the runtime tracking infrastructure. TrackingWorkflowEvent 将枚举工作流状态事件可能的类型。TrackingWorkflowEvent enumerates the possible types of workflow status event.