IServiceProviderEx.GetService<T> Method
Retrieves an object that specifies the type of service object to get.
Namespace: Microsoft.SqlServer.Management
Assembly: Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)
Syntax
'Declaration
Function GetService(Of T) As T
'Usage
Dim instance As IServiceProviderEx
Dim returnValue As T
returnValue = instance.GetService()
T GetService<T>()
generic<typename T>
T GetService()
abstract GetService : unit -> 'T
JScript does not support generic types and methods.
Type Parameters
- T
Return Value
Type: T
A service object of type serviceType.