DatabaseSchemaProvider.GetServiceConstructor<TServiceConstructor> Method

Returns a compatible service constructor if one is registered; otherwise, falls back on the extension manager.

Namespace:  Microsoft.Data.Schema.Extensibility
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Function GetServiceConstructor(Of TServiceConstructor As ServiceConstructor) As TServiceConstructor
'Usage
Dim instance As DatabaseSchemaProvider
Dim returnValue As TServiceConstructor

returnValue = instance.GetServiceConstructor()
public TServiceConstructor GetServiceConstructor<TServiceConstructor>()
where TServiceConstructor : ServiceConstructor
public:
generic<typename TServiceConstructor>
where TServiceConstructor : ServiceConstructor
TServiceConstructor GetServiceConstructor()
JScript does not support generic types or methods.
member GetServiceConstructor : unit -> 'TServiceConstructor  when 'TServiceConstructor : ServiceConstructor

Type Parameters

  • TServiceConstructor
    The service constructor

Return Value

Type: TServiceConstructor

.NET Framework Security

See Also

Reference

DatabaseSchemaProvider Class

DatabaseSchemaProvider Members

Microsoft.Data.Schema.Extensibility Namespace