Module.ResolveType メソッド (Int32)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As Module Dim metadataToken As Integer Dim returnValue As Type returnValue = instance.ResolveType(metadataToken)
戻り値
指定したメタデータ トークンで識別される型を表す Type オブジェクト。


シグネチャに要素型 var または mvar を含む TypeSpec のメタデータ トークンを解決するには、ResolveType(Int32,Type[],Type[]) メソッド オーバーロードを使用して、必要なコンテキストを提供できるようにします。
![]() |
---|
メタデータ トークンについては、共通言語基盤 (CLI: Common Language Infrastructure) のドキュメント、特に「Partition II: Metadata Definition and Semantics」を参照してください。このドキュメントは、http://msdn.microsoft.com/net/ecma/ および http://www.ecma-international.org/publications/standards/Ecma-335.htm で入手できます。 |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Module.ResolveType メソッド (Int32, Type[], Type[])
アセンブリ: mscorlib (mscorlib.dll 内)

Public Function ResolveType ( _ metadataToken As Integer, _ genericTypeArguments As Type(), _ genericMethodArguments As Type() _ ) As Type
Dim instance As Module Dim metadataToken As Integer Dim genericTypeArguments As Type() Dim genericMethodArguments As Type() Dim returnValue As Type returnValue = instance.ResolveType(metadataToken, genericTypeArguments, genericMethodArguments)
public Type ResolveType ( int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments )
public: Type^ ResolveType ( int metadataToken, array<Type^>^ genericTypeArguments, array<Type^>^ genericMethodArguments )
public Type ResolveType ( int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments )
public function ResolveType ( metadataToken : int, genericTypeArguments : Type[], genericMethodArguments : Type[] ) : Type
- genericTypeArguments
トークンがスコープ内にある型のジェネリック型の引数を表す Type オブジェクトの配列。その型がジェネリックではない場合は null 参照 (Visual Basic では Nothing)。
- genericMethodArguments
トークンがスコープ内にあるメソッドのジェネリック型の引数を表す Type オブジェクトの配列。そのメソッドがジェネリックではない場合は null 参照 (Visual Basic では Nothing)。
指定したメタデータ トークンで識別される型を表す Type オブジェクト。


metadataToken がスコープ内にある型の Type.GetGenericArguments メソッドを使用して、genericTypeArguments のジェネリック型の引数の配列を取得します。metadataToken がスコープ内にあるメソッドの MethodInfo.GetGenericArguments メソッドを使用して、genericTypeArguments のジェネリック型の引数の配列を取得します。これらの引数は、必要とされていないときであっても、常に安全に提供できます。
![]() |
---|
メタデータ トークンについては、共通言語基盤 (CLI: Common Language Infrastructure) のドキュメント、特に「Partition II: Metadata Definition and Semantics」を参照してください。このドキュメントは、http://msdn.microsoft.com/net/ecma/ および http://www.ecma-international.org/publications/standards/Ecma-335.htm で入手できます。 |

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Module.ResolveType メソッド
- Module.ResolveType メソッドのページへのリンク