TreeView for WinForms | ComponentOne
System Namespace / ServiceExtensions Class / GetService<T> Method

In This Topic
    GetService<T> Method
    In This Topic
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function GetService(Of T As Class)( _
       ByVal provider As IServiceProvider _
    ) As T
    [Extension()]
    public static T GetService<T>( 
       IServiceProvider provider
    )
    where T: class

    Parameters

    provider

    Type Parameters

    T
    See Also