ExtensionManager.GetExtension<TInterfaceType> – metoda (ExtensionHandle)
Vyhledá v aktuálním rozšíření ExtensionManager typu IExtension a konfigurace objektu, který je identifikován jako ExtensionHandle hodnotu parametru.
Obor názvů: Microsoft.Data.Schema.Extensibility
Sestavení: Microsoft.Data.Schema (v Microsoft.Data.Schema.dll)
Syntaxe
'Deklarace
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
Jazyk JScript nepodporuje obecné typy a metody.
Parametry typu
- TInterfaceType
A Type , dědí z IExtension.
Parametry
- extensionHandle
Typ: Microsoft.Data.Schema.Extensibility.ExtensionHandle
ExtensionHandle<TInterfaceType> Objektu typu IExtension Najít.
Vrácená hodnota
Typ: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
ExtensionHandle<TInterfaceType> Zadaného TInterfaceType , byl načten.
Poznámky
Tato metoda je použité rozšíření, které budou rekonstruovány úchyty. Rekonstruované ExtensionHandle<TInterfaceType> objektu nutné předat tato metoda nejprve před jeho použitím.
Pokud neexistuje odpovídající ExtensionHandle<TInterfaceType> nalezen, vrátí metoda nullodkaz Null (Nothing v jazyce Visual Basic).
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.