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 不支援泛型型別或方法。
型別參數
- TInterfaceType
繼承自 IExtension 的 Type。
參數
- assemblyName
型別:System.String
包含組件名稱的 string。
- typeFullName
型別:System.String
包含完整型別名稱的 string。
傳回值
型別:Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
型別為 IExtension 的 ExtensionHandle<TInterfaceType>。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Data.Schema.Extensibility 命名空間