Sdílet prostřednictvím


DatabaseSchemaProvider.GetServiceConstructor<TServiceConstructor> – metoda

Vrátí konstruktor služby, který je identifikován pomocí poskytnutého Type.

Obor názvů:  Microsoft.Data.Schema
Sestavení:  Microsoft.Data.Schema (v Microsoft.Data.Schema.dll)

Syntaxe

'Deklarace
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
Jazyk JScript nepodporuje obecné typy a metody.

Parametry typu

Vrácená hodnota

Typ: TServiceConstructor
Registrované službou zadaného Type.

Výjimky

Výjimka Podmínka
ExtensibilityException

Odpovídá více než jeden konstruktor služby požadované Type, nebo nebyl nalezen žádný odpovídající konstruktor.

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

DatabaseSchemaProvider Třída

Microsoft.Data.Schema – obor názvů

ServiceConstructor