Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorkflowRuntime::Stopped Event

 

Occurs when the workflow run-time engine is stopped.

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

public:
event EventHandler<WorkflowRuntimeEventArgs^>^ Stopped {
	void add(EventHandler<WorkflowRuntimeEventArgs^>^ value);
	void remove(EventHandler<WorkflowRuntimeEventArgs^>^ value);
}

The StopRuntime method raises the Stopped event after it has invoked the Stop method implemented by each of its services that derive from the WorkflowRuntimeService class. There is no guarantee about the order in which these workflow run-time engine services are stopped, and some of these services may need to preserve some functionality that is relied on by other services until they too are stopped. Such services can override the WorkflowRuntimeService::OnStopped method to perform any residual shutdown logic when the Stopped event is raised.

For more information about handling events, see Consuming Events.

In the following example, an event handler is added to the Stopped event of the WorkflowRuntime. In this example, the handler is an anonymous method that prints a simple message to the console.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft