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
- TServiceConstructor
A Type that identifies the ServiceConstructor object to return.
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
- 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.