<TInterfaceType> の拡張機能を 1 つ取得します。 複数の拡張機能が見つかった場合、拡張機能が見つからなかった場合、または <TInterfaceType> が複数の拡張機能をサポートしている場合、このメソッドは False を返し、出力パラメータである ExtensionHandle は null になります。
名前空間 : Microsoft.Data.Schema.Extensibility
アセンブリ : Microsoft.Data.Schema (Microsoft.Data.Schema.dll 内)
構文
'宣言
Public Function TryGetSingleExtension(Of TInterfaceType As {Class, IExtension}) ( _
<OutAttribute> ByRef extensionHandle As ExtensionHandle(Of TInterfaceType) _
) As Boolean
'使用
Dim instance As ExtensionManager
Dim extensionHandle As ExtensionHandle(Of TInterfaceType)
Dim returnValue As Boolean
returnValue = instance.TryGetSingleExtension(extensionHandle)
public bool TryGetSingleExtension<TInterfaceType>(
out ExtensionHandle<TInterfaceType> extensionHandle
)
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
bool TryGetSingleExtension(
[OutAttribute] ExtensionHandle<TInterfaceType>^% extensionHandle
)
JScript では、ジェネリックな型またはメソッドは使用できません。
型パラメータ
- TInterfaceType
パラメータ
- extensionHandle
型 : Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>%
[T:Microsoft.VisualStudio.TeamSystem.Data.Extensibility.ExtensionHandle<TInterfaceType>] は、<TInterfaceType> インターフェイスを実装している ExtensionHandle オブジェクトです。
戻り値
型 : System.Boolean
複数の拡張機能が見つかった場合、拡張機能が見つからなかった場合、または <TInterfaceType> が複数の拡張機能をサポートしている場合、Boolean は False を返し、ExtensionHandle が null に設定されます。