Share via


ExtensionManager.GetExtension<TInterfaceType> Method (ExtensionHandle)

Finds an extension in the current ExtensionManager of type IExtension and configuration as the object that is identified by the ExtensionHandle parameter value.

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

Syntax

'Declaration
Public Function GetExtension(Of TInterfaceType As {Class, IExtension}) ( _
    extensionHandle As ExtensionHandle _
) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetExtension<TInterfaceType>(
    ExtensionHandle extensionHandle
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetExtension(
    ExtensionHandle^ extensionHandle
)
member GetExtension : 
        extensionHandle:ExtensionHandle -> ExtensionHandle<'TInterfaceType>  when 'TInterfaceType : not struct and IExtension
JScript does not support generic types or methods.

Type Parameters

Parameters

Return Value

Type: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
An ExtensionHandle<TInterfaceType> of the specified TInterfaceType that has been loaded.

Remarks

This method is used extension handles are deserialized. A deserialized ExtensionHandle<TInterfaceType> object must be passed to this method first before it is used.

If no matching ExtensionHandle<TInterfaceType> is found, the method returns nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ExtensionManager Class

GetExtension Overload

Microsoft.Data.Schema.Extensibility Namespace

GetExtension

IExtension

ExtensionHandle<TInterfaceType>