A Sandcastle Documented Class Library

# Engine GetService T Method

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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public T GetService<T>()
    where T : class

    Public Function GetService(Of T As Class) As T

    public:
    generic<typename T>
    where T : ref class
    virtual T GetService() sealed

    abstract GetService : unit -> 'T  when 'T : not struct
    override GetService : unit -> 'T  when 'T : not struct

#### Type Parameters

T
  The type of service object to get.

#### Return Value

Type: T
A service object of type T.

#### Implements

IEngine
GetService
T
Exceptions

Exception | Condition
--- | ---
KeyNotFoundException | The requested service type has not been registered.

See Also

#### Reference

Engine Class
GetService Overload
Dundas.BI Namespace