WorkflowRuntime::GetAllServices Method (Type^)
.NET Framework (current version)
Retrieves all the services that are added to the workflow run-time engine that implement or derive from the specified Type.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Parameters
- serviceType
-
Type:
System::Type^
The Type that services must implement to be returned.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<Object^>^Services that implement or derive from the specified Type.
| Exception | Condition |
|---|---|
| ArgumentNullException | serviceType is a null reference (Nothing in Visual Basic). |
| ObjectDisposedException | The WorkflowRuntime is disposed. |
An empty ReadOnlyCollection<T> indicates that no services that implement or derive from the specified Type have been added to the workflow run-time engine.
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: