'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.