共用方式為


ExtensionManager.GetExtension<TInterfaceType> 方法 (String, String)

使用提供的組件名稱和型別名稱,尋找目前 ExtensionManager 中已載入擴充的擴充。

命名空間:  Microsoft.Data.Schema.Extensibility
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Public Function GetExtension(Of TInterfaceType As {Class, IExtension}) ( _
    assemblyName As String, _
    typeFullName As String _
) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetExtension<TInterfaceType>(
    string assemblyName,
    string typeFullName
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetExtension(
    String^ assemblyName, 
    String^ typeFullName
)
member GetExtension : 
        assemblyName:string * 
        typeFullName:string -> ExtensionHandle<'TInterfaceType>  when 'TInterfaceType : not struct and IExtension
JScript 不支援泛型型別或方法。

型別參數

參數

  • assemblyName
    型別:System.String
    包含組件名稱的 string。
  • typeFullName
    型別:System.String
    包含完整型別名稱的 string。

傳回值

型別:Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
型別為 IExtensionExtensionHandle<TInterfaceType>

.NET Framework 安全性

請參閱

參考

ExtensionManager 類別

GetExtension 多載

Microsoft.Data.Schema.Extensibility 命名空間

GetExtension

ExtensionHandle<TInterfaceType>

IExtension