次の方法で共有


ExtensionManager.GetSingleExtension<TInterfaceType> メソッド

単一の ExtensionHandle オブジェクトを返します。

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

構文

'宣言
Public Function GetSingleExtension(Of TInterfaceType As {Class, IExtension}) As ExtensionHandle(Of TInterfaceType)
public ExtensionHandle<TInterfaceType> GetSingleExtension<TInterfaceType>()
where TInterfaceType : class, IExtension
public:
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
ExtensionHandle<TInterfaceType>^ GetSingleExtension()
member GetSingleExtension : unit -> ExtensionHandle<'TInterfaceType>  when 'TInterfaceType : not struct and IExtension
JScript では、ジェネリックな型またはメソッドは使用できません。

型パラメーター

戻り値

型: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
ExtensionHandle<TInterfaceType>

例外

例外 条件
ExtensibilityException

ExtensionCriteriaAttributeAllowMultipleExtensions プロパティは false で、一致する拡張子が複数見つかりました。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ExtensionManager クラス

Microsoft.Data.Schema.Extensibility 名前空間

ExtensionCriteriaAttribute

AllowMultipleExtensions

ExtensionHandle<TInterfaceType>