DatabaseSchemaProvider.GetService<TService> Method
Returns an instantiated service object that is registered with this provider and identified by the provided Type.
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function GetService(Of TService) As TService
public TService GetService<TService>()
public:
generic<typename TService>
TService GetService()
member GetService : unit -> 'TService
JScript does not support generic types or methods.
Type Parameters
- TService
A Type that identifies the DataProviderServices object to return.
Return Value
Type: TService
The requested service object, if one is registered.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.