ExtensionManager.GetSingleExtension<TInterfaceType> Yöntem
Tek bir sayı ExtensionHandle nesne.
Ad alanı: Microsoft.Data.Schema.Extensibility
Derleme: Microsoft.Data.Schema (Microsoft.Data.Schema.dll içinde)
Sözdizimi
'Bildirim
Public Function GetSingleExtension(Of TInterfaceType As {Class, IExtension}) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetSingleExtension<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetSingleExtension()
member GetSingleExtension : unit -> ExtensionHandle<'TInterfaceType> when 'TInterfaceType : not struct and IExtension
JScript genel türleri veya yöntemleri desteklemez.
Tür Parametreleri
- TInterfaceType
A Type , miras IExtension.
Dönüş Değeri
Tür: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
An ExtensionHandle<TInterfaceType>.
Özel Durumlar
Exception | Koşul |
---|---|
ExtensibilityException | AllowMultipleExtensions Özelliği ExtensionCriteriaAttribute olan false, ve birden fazla eşleşen uzantısı 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.