Aracılığıyla paylaş


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

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

Ayrıca bkz.

Başvuru

ExtensionManager Sınıf

Microsoft.Data.Schema.Extensibility Ad Alanı

ExtensionCriteriaAttribute

AllowMultipleExtensions

ExtensionHandle<TInterfaceType>