WorkflowRuntime 类

定义

注意

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

表示工作流运行时引擎为工作流提供的可配置执行环境。

public ref class WorkflowRuntime : IDisposable, IServiceProvider
public class WorkflowRuntime : IDisposable, IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class WorkflowRuntime : IDisposable, IServiceProvider
type WorkflowRuntime = class
    interface IServiceProvider
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowRuntime = class
    interface IServiceProvider
    interface IDisposable
Public Class WorkflowRuntime
Implements IDisposable, IServiceProvider
继承
WorkflowRuntime
属性
实现

注解

注释

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

WorkflowRuntime 公开主机应用程序和服务配置和控制工作流运行时引擎所需的功能,并通知工作流运行时引擎及其任何工作流实例的更改。

构造函数

名称 说明
WorkflowRuntime()
已过时.

初始化 WorkflowRuntime 类的新实例。

WorkflowRuntime(String)
已过时.

使用应用程序配置文件的指定节初始化类的新实例 WorkflowRuntime

WorkflowRuntime(WorkflowRuntimeSection)
已过时.

使用指定WorkflowRuntimeSection设置初始化类的新实例WorkflowRuntime

属性

名称 说明
IsStarted
已过时.

获取一个值,该值指示是否已启动工作流运行时引擎。

Name
已过时.

获取或设置与 /> 关联的名称。

方法

名称 说明
AddService(Object)
已过时.

将指定的服务添加到工作流运行时引擎。

CreateWorkflow(Type, Dictionary<String,Object>, Guid)
已过时.

使用指定的参数创建工作流实例。

CreateWorkflow(Type, Dictionary<String,Object>)
已过时.

使用指定的工作流 Type 和指定 Dictionary<TKey,TValue>工作流中包含的工作流的参数创建工作流实例。

CreateWorkflow(Type)
已过时.

使用指定的工作流创建新的工作流 Type实例。

CreateWorkflow(XmlReader, XmlReader, Dictionary<String,Object>, Guid)
已过时.

使用指定的参数创建工作流实例。

CreateWorkflow(XmlReader, XmlReader, Dictionary<String,Object>)
已过时.

使用指定的 XmlReader 对象和指定 Dictionary<TKey,TValue>中包含的参数创建工作流实例。

CreateWorkflow(XmlReader)
已过时.

使用指定的 XmlReader工作流实例创建工作流实例。

Dispose()
已过时.

释放由该 WorkflowRuntime命令使用的资源。

Equals(Object)
已过时.

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

(继承自 Object)
GetAllServices(Type)
已过时.

检索添加到实现或派生自指定 Type工作流运行时引擎的所有服务。

GetAllServices<T>()
已过时.

检索添加到工作流运行时引擎的所有服务,这些服务实现或派生自指定的泛型类型。

GetHashCode()
已过时.

用作默认哈希函数。

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

获取一个集合,该集合包含当前在内存中加载的所有工作流实例。

GetService(Type)
已过时.

从工作流运行时引擎检索指定的 Type 服务。

GetService<T>()
已过时.

从工作流运行时引擎检索指定泛型类型的服务。

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
GetWorkflow(Guid)
已过时.

检索具有指定 Guid项的工作流实例。

MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

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

从工作流运行时引擎中删除指定的服务。

StartRuntime()
已过时.

启动工作流运行时引擎和工作流运行时引擎服务。

StopRuntime()
已过时.

停止工作流运行时引擎和运行时服务。

ToString()
已过时.

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

(继承自 Object)

活动

名称 说明
ServicesExceptionNotHandled
已过时.

当派生自类调用RaiseServicesExceptionNotHandledEvent(Exception, Guid)的服务WorkflowRuntimeService时发生。

Started
已过时.

在启动工作流运行时引擎时发生。

Stopped
已过时.

在工作流运行时引擎停止时发生。

WorkflowAborted
已过时.

在中止工作流实例时发生。

WorkflowCompleted
已过时.

工作流实例完成时发生。

WorkflowCreated
已过时.

创建工作流实例时发生。

WorkflowIdled
已过时.

当工作流实例进入空闲状态时发生。

WorkflowLoaded
已过时.

当工作流实例加载到内存中时发生。

WorkflowPersisted
已过时.

在工作流实例的状态持久化时发生。

WorkflowResumed
已过时.

在挂起后恢复工作流实例的执行时发生。

WorkflowStarted
已过时.

在启动工作流实例时发生。

WorkflowSuspended
已过时.

挂起工作流实例时发生。

WorkflowTerminated
已过时.

在工作流实例终止时发生。

WorkflowUnloaded
已过时.

从内存中卸载工作流实例时发生。

适用于

线程安全性

此类型是线程安全的。