Type.GetInterfaceMapとは? わかりやすく解説

Type.GetInterfaceMap メソッド

指定したインターフェイス型に対するインターフェイスの割り当てを返します。

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
Public Overridable Function
 GetInterfaceMap ( _
    interfaceType As Type _
) As InterfaceMapping
Dim instance As Type
Dim interfaceType As Type
Dim returnValue As InterfaceMapping

returnValue = instance.GetInterfaceMap(interfaceType)
[ComVisibleAttribute(true)] 
public virtual InterfaceMapping GetInterfaceMap (
    Type interfaceType
)
[ComVisibleAttribute(true)] 
public:
virtual InterfaceMapping GetInterfaceMap (
    Type^ interfaceType
)
/** @attribute ComVisibleAttribute(true) */ 
public InterfaceMapping GetInterfaceMap (
    Type interfaceType
)
ComVisibleAttribute(true) 
public function GetInterfaceMap (
    interfaceType : Type
) : InterfaceMapping

パラメータ

interfaceType

割り当ての取得対象であるインターフェイスの Type。

戻り値
interfaceType に対するインターフェイスの割り当てを表す InterfaceMapping オブジェクト。

例外例外
例外の種類条件

ArgumentException

interfaceType パラメータは、インターフェイスを参照しません。

ArgumentNullException

interfaceType が null 参照 (Visual Basic では Nothing) です。

InvalidOperationException

現在の Type は、ジェネリック型のパラメータを表します。つまり、IsGenericParameter は true です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

_Type.GetInterfaceMap メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

COM オブジェクトに、Type.GetInterfaceMap メソッドへのバージョンに依存しないアクセスが用意されています。

このメソッドは、CLS に準拠していません。  

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Function GetInterfaceMap ( _
    interfaceType As Type _
) As InterfaceMapping
Dim instance As _Type
Dim interfaceType As Type
Dim returnValue As InterfaceMapping

returnValue = instance.GetInterfaceMap(interfaceType)
InterfaceMapping GetInterfaceMap (
    Type interfaceType
)
InterfaceMapping GetInterfaceMap (
    Type^ interfaceType
)
InterfaceMapping GetInterfaceMap (
    Type interfaceType
)
function GetInterfaceMap (
    interfaceType : Type
) : InterfaceMapping

パラメータ

interfaceType

割り当ての取得対象であるインターフェイスの Type。

戻り値
interfaceType に対するインターフェイスの割り当てを表す InterfaceMapping オブジェクト。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「Type.GetInterfaceMap」の関連用語

Type.GetInterfaceMapのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Type.GetInterfaceMapのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS