GetService<T> Method (ServiceProviderExtension)
Get the service of specified type.
'Declaration
Public Shared Function GetService(Of As Class)( _
ByVal As IServiceProvider _
) As
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.