ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Core.Rendering.Tools Namespace / ServiceProviderExtension Class / GetService<T> Method
The type of service to get.
The service provider to get from.

In This Topic
    GetService<T> Method (ServiceProviderExtension)
    In This Topic
    Get the service of specified type.
    Syntax
    'Declaration
     
    Public Shared Function GetService(Of T As Class)( _
       ByVal provider As IServiceProvider _
    ) As T
    public static T GetService<T>( 
       IServiceProvider provider
    )
    where T: class

    Parameters

    provider
    The service provider to get from.

    Type Parameters

    T
    The type of service to get.

    Return Value

    The found service of specified type.
    See Also