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
- TInterfaceType
A Type that inherits from IExtension.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.