Share via


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

Return Value

Type: TService
The requested service object, if one is registered.

.NET Framework Security

See Also

Reference

DatabaseSchemaProvider Class

Microsoft.Data.Schema Namespace

DataProviderServices