WorkflowRuntime::GetAllServices Method (Type^)

 

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

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

public:
ReadOnlyCollection<Object^>^ GetAllServices(
	Type^ serviceType
)

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.

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

.NET Framework
Available since 3.0
Return to top
Show: