DatabaseSchemaProvider.GetServiceConstructor<TServiceConstructor> Yöntem
Belirtilen hizmet için bir yapıcı işlevi tarafından sağlanan Type.
Ad alanı: Microsoft.Data.Schema
Derleme: Microsoft.Data.Schema (Microsoft.Data.Schema.dll içinde)
Sözdizimi
'Bildirim
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 genel türleri veya yöntemleri desteklemez.
Tür Parametreleri
- TServiceConstructor
A Type tanıtan ServiceConstructor nesne için return.
Dönüş Değeri
Tür: TServiceConstructor
Kayıtlı Hizmet belirtilen Type.
Özel Durumlar
Exception | Koşul |
---|---|
ExtensibilityException | Birden fazla hizmet Oluşturucu istenen eşleşen Type, veya eşleşen Oluşturucu yoktu bulundu. |
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.