次の方法で共有


ExtensionManager.GetExtension<TInterfaceType> メソッド (ExtensionHandle)

現在の ExtensionManager において、IExtension 型で、ExtensionHandle パラメーター値によって識別されるオブジェクトとしての構成の拡張機能を検索します。

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

構文

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

型パラメーター

パラメーター

戻り値

型: Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>
読み込み済みの、指定された TInterfaceType の ExtensionHandle<TInterfaceType>

解説

このメソッドは、拡張ハンドルが逆シリアル化されるときに使用されます。 このメソッドを使用する前に、まず逆シリアル化された ExtensionHandle<TInterfaceType> オブジェクトを渡す必要があります。

一致する ExtensionHandle<TInterfaceType> が見つからない場合、メソッドは nullnull 参照 (Visual Basic では Nothing) を返します。

.NET Framework セキュリティ

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

参照

参照

ExtensionManager クラス

GetExtension オーバーロード

Microsoft.Data.Schema.Extensibility 名前空間

GetExtension

IExtension

ExtensionHandle<TInterfaceType>