ExtensionManager.GetExtension<TInterfaceType> Method (Type)
Retrieves an ExtensionHandle<TInterfaceType> that matches the provided Type.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function GetExtension(Of TInterfaceType As {Class, IExtension}) ( _
extensionType As Type _
) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetExtension<TInterfaceType>(
Type extensionType
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetExtension(
Type^ extensionType
)
member GetExtension :
extensionType:Type -> 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.
Parameters
- extensionType
Type: System.Type
The Type identifies the extension type.
Return Value
Type: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
An ExtensionHandle<TInterfaceType> of type IExtension.
.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.