Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- TInterfaceType
A Type that inherits from IExtension.
Parameters
- extensionHandle
Type: Microsoft.Data.Schema.Extensibility.ExtensionHandle
The ExtensionHandle<TInterfaceType> of an object of type IExtension to find.
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
- 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.