次の方法で共有


ExtensionManager.GetSingleExtension<TInterfaceType> メソッド

ExtensionHandle を 1 つ取得します。 AllowMultipleExtensions プロパティが False の場合に、このメソッドが複数の拡張機能を返そうとすると、MultipleExtensionsFoundException がスローされます。

名前空間 :  Microsoft.Data.Schema.Extensibility
アセンブリ :  Microsoft.Data.Schema (Microsoft.Data.Schema.dll 内)

構文

'宣言
Public Function GetSingleExtension(Of TInterfaceType As {Class, IExtension}) As ExtensionHandle(Of TInterfaceType)
'使用
Dim instance As ExtensionManager
Dim returnValue As ExtensionHandle(Of TInterfaceType)

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

型パラメータ

  • TInterfaceType

戻り値

型 : Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
[T:Microsoft.VisualStudio.TeamSystem.Data.Extensibility.ExtensionHandle<TInterfaceType>] は、<TInterfaceType> インターフェイスを実装している ExtensionHandle オブジェクトです。

参照

参照

ExtensionManager クラス

ExtensionManager メンバ

Microsoft.Data.Schema.Extensibility 名前空間