Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

WorkflowRuntime Class

Definition

Namespace:
System.Workflow.Runtime
Assembly:
System.Workflow.Runtime.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

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

Represents the configurable execution environment provided by the workflow run-time engine for workflows.

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 WorkflowRuntimeImplements IDisposable, IServiceProvider
Inheritance
WorkflowRuntime
Attributes
Implements

Remarks

Note

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

WorkflowRuntime exposes functionality required by a host application and services to configure and control the workflow run-time engine and to be notified of changes to both the workflow run-time engine and any of its workflow instances.

Constructors

WorkflowRuntime()

Initializes a new instance of theWorkflowRuntime class.

WorkflowRuntime(String)

Initializes a new instance of theWorkflowRuntime class by using the specified section of the application configuration file.

WorkflowRuntime(WorkflowRuntimeSection)

Initializes a new instance of theWorkflowRuntime class by using the settings in the specifiedWorkflowRuntimeSection.

Properties

IsStarted

Gets a value that indicates whether the workflow run-time engine has been started.

Name

Gets or sets the name associated with theWorkflowRuntime.

Methods

AddService(Object)

Adds the specified service to the workflow run-time engine.

CreateWorkflow(Type, Dictionary<String,Object>, Guid)

Creates a workflow instance by using the specified parameters.

CreateWorkflow(Type, Dictionary<String,Object>)

Creates a workflow instance by using the specified workflowType and the arguments to the workflow contained in the specifiedDictionary<TKey,TValue>.

CreateWorkflow(Type)

Creates a new workflow instance by using the specified workflowType.

CreateWorkflow(XmlReader, XmlReader, Dictionary<String,Object>, Guid)

Creates a workflow instance by using the specified parameters.

CreateWorkflow(XmlReader, XmlReader, Dictionary<String,Object>)

Creates a workflow instance by using the specifiedXmlReader objects and the arguments contained in the specifiedDictionary<TKey,TValue>.

CreateWorkflow(XmlReader)

Creates a workflow instance by using the specifiedXmlReader.

Dispose()

Releases the resources used by theWorkflowRuntime.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited fromObject)
GetAllServices(Type)

Retrieves all the services that are added to the workflow run-time engine that implement or derive from the specifiedType.

GetAllServices<T>()

Retrieves all the services that are added to the workflow run-time engine that implement or derive from the specified generic type.

GetHashCode()

Serves as the default hash function.

(Inherited fromObject)
GetLoadedWorkflows()

Gets a collection that contains all the workflow instances currently loaded in memory.

GetService(Type)

Retrieves a service of the specifiedType from the workflow run-time engine.

GetService<T>()

Retrieves a service of the specified generic type from the workflow run-time engine.

GetType()

Gets theType of the current instance.

(Inherited fromObject)
GetWorkflow(Guid)

Retrieves the workflow instance that has the specifiedGuid.

MemberwiseClone()

Creates a shallow copy of the currentObject.

(Inherited fromObject)
RemoveService(Object)

Removes the specified service from the workflow run-time engine.

StartRuntime()

Starts the workflow run-time engine and the workflow run-time engine services.

StopRuntime()

Stops the workflow run-time engine and the run-time services.

ToString()

Returns a string that represents the current object.

(Inherited fromObject)

Events

ServicesExceptionNotHandled

Occurs when a service that is derived from theWorkflowRuntimeService class callsRaiseServicesExceptionNotHandledEvent(Exception, Guid).

Started

Occurs when the workflow run-time engine is started.

Stopped

Occurs when the workflow run-time engine is stopped.

WorkflowAborted

Occurs when a workflow instance is aborted.

WorkflowCompleted

Occurs when a workflow instance has completed.

WorkflowCreated

Occurs when a workflow instance is created.

WorkflowIdled

Occurs when a workflow instance enters the idle state.

WorkflowLoaded

Occurs when the workflow instance is loaded into memory.

WorkflowPersisted

Occurs when the state of a workflow instance is persisted.

WorkflowResumed

Occurs when execution of a workflow instance is resumed following a suspension.

WorkflowStarted

Occurs when a workflow instance has been started.

WorkflowSuspended

Occurs when a workflow instance is suspended.

WorkflowTerminated

Occurs when a workflow instance is terminated.

WorkflowUnloaded

Occurs when the workflow instance is unloaded from memory.

Applies to

Thread Safety

This type is thread safe.

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo