DatabaseSchemaProvider.GetServiceConstructor<TServiceConstructor> Method

Returns a constructor for the service that is identified by the provided Type.

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

Syntax

'Declaration
Public Function GetServiceConstructor(Of TServiceConstructor As ServiceConstructor) As TServiceConstructor
public TServiceConstructor GetServiceConstructor<TServiceConstructor>()
where TServiceConstructor : ServiceConstructor
public:
generic<typename TServiceConstructor>
where TServiceConstructor : ServiceConstructor
TServiceConstructor GetServiceConstructor()
member GetServiceConstructor : unit -> 'TServiceConstructor  when 'TServiceConstructor : ServiceConstructor
JScript does not support generic types or methods.

Type Parameters

Return Value

Type: TServiceConstructor
The registered service of the specified Type.

Exceptions

Exception Condition
ExtensibilityException

More than one service constructor matches the requested Type, or no matching constructor can be found.

.NET Framework Security

See Also

Reference

DatabaseSchemaProvider Class

Microsoft.Data.Schema Namespace

ServiceConstructor