Open this page in the API Guide

IEngine.GetService<T> Method (Boolean)

Gets the service object of the specified type.

Namespace:  Dundas.BI
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
T GetService<T>(
	bool throwIfNotFound
)
where T : class

Parameters

throwIfNotFound
Type: System.Boolean
A value indicating whether an exception should be thrown if the service is not found.

Type Parameters

T
The type of service object to get.

Return Value

Type: T
A service object of type T, or null if the service was not found and throwIfNotFound is false.
Exceptions
ExceptionCondition
KeyNotFoundException The requested service type has not been registered and throwIfNotFound is true.
See Also