WorkflowRuntime::GetAllServices<T> Method ()
.NET Framework (current version)
Retrieves all the services that are added to the workflow run-time engine that implement or derive from the specified generic type.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<T>^Services that implement or derive from the specified generic type.
Type Parameters
- T
The service type.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The WorkflowRuntime is disposed. |
An empty ReadOnlyCollection<T> indicates that no services have been added to the workflow run-time engine that implement or derive from the specified generic type.
The following example demonstrates how to retrieve all services of a given type from a WorkflowRuntime object.
.NET Framework
Available since 3.0
Available since 3.0
Show: