ExtensionManager.GetExtensions<TInterfaceType> 方法
針對已提供且順利載入的擴充介面型別,傳回擴充型別的清單。
命名空間: Microsoft.Data.Schema.Extensibility
組件: Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)
語法
'宣告
Public Function GetExtensions(Of TInterfaceType As {Class, IExtension}) As ReadOnlyCollection(Of ExtensionHandle(Of TInterfaceType))
public ReadOnlyCollection<ExtensionHandle<TInterfaceType>> GetExtensions<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ReadOnlyCollection<ExtensionHandle<TInterfaceType>^>^ GetExtensions()
member GetExtensions : unit -> ReadOnlyCollection<ExtensionHandle<'TInterfaceType>> when 'TInterfaceType : not struct and IExtension
JScript 不支援泛型型別或方法。
型別參數
- TInterfaceType
繼承自 IExtension 介面的介面。
傳回值
型別:System.Collections.ObjectModel.ReadOnlyCollection<ExtensionHandle<TInterfaceType>>
型別為 ExtensionHandle 的 ReadOnlyCollection<T>,包含已順利載入之擴充的控制代碼。
備註
會傳回的擴充功能只有設成與使用符合型別在 ExtensionManager 中指定的提供者不相容的擴充功能。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。