WorkflowRuntime::GetAllServices<T> Method ()

 

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

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

public:
generic<typename T>
ReadOnlyCollection<T>^ GetAllServices()

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.

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

.NET Framework
Available since 3.0
Return to top
Show: