Share via


ExtensionManager.GetSingleExtension<TInterfaceType> Method

Returns a single ExtensionHandle object.

Namespace:  Microsoft.Data.Schema.Extensibility
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
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 does not support generic types or methods.

Type Parameters

Return Value

Type: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
An ExtensionHandle<TInterfaceType>.

Exceptions

Exception Condition
ExtensibilityException

The AllowMultipleExtensions property of the ExtensionCriteriaAttribute is false, and more than one matching extension was found.

.NET Framework Security

See Also

Reference

ExtensionManager Class

Microsoft.Data.Schema.Extensibility Namespace

ExtensionCriteriaAttribute

AllowMultipleExtensions

ExtensionHandle<TInterfaceType>