次の方法で共有


ExtensionManager.GetExtensions<TInterfaceType> メソッド

指定された拡張機能のインターフェイス型に対応する拡張機能の型を取得します。 このメソッドは、正常に読み込まれた ExtensionHandle のリストを返します。

名前空間 :  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))
'使用
Dim instance As ExtensionManager
Dim returnValue As ReadOnlyCollection(Of ExtensionHandle(Of TInterfaceType))

returnValue = instance.GetExtensions()
public ReadOnlyCollection<ExtensionHandle<TInterfaceType>> GetExtensions<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ReadOnlyCollection<ExtensionHandle<TInterfaceType>^>^ GetExtensions()
JScript では、ジェネリックな型またはメソッドは使用できません。

型パラメータ

  • TInterfaceType

戻り値

型 : System.Collections.ObjectModel.ReadOnlyCollection<ExtensionHandle<TInterfaceType>>
[T:System.Collections.ObjectModel.ReadOnlyCollection<ExtensionLoadError>] は、正常に読み込まれた ExtensionHandle のリストを格納する ReadOnlyCollection です。

解説

属性を使用して ExtensionManager に指定されたプロバイダと互換性があるものとして設定されている拡張機能だけが返されます。

参照

参照

ExtensionManager クラス

ExtensionManager メンバ

Microsoft.Data.Schema.Extensibility 名前空間