ModuleHandle.ResolveTypeHandle メソッド

定義

メタデータ トークンによって識別される型のランタイム型ハンドルを返します。

オーバーロード

名前 説明
ResolveTypeHandle(Int32)

指定したメタデータ トークンによって識別される型のランタイム型ハンドルを返します。

ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

指定したメタデータ トークンによって識別される型のランタイム型ハンドルを返します。トークンがスコープ内にある型とメソッドのジェネリック型引数を指定します。

ResolveTypeHandle(Int32)

ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs

指定したメタデータ トークンによって識別される型のランタイム型ハンドルを返します。

public:
 RuntimeTypeHandle ResolveTypeHandle(int typeToken);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimming changes metadata tokens")]
public RuntimeTypeHandle ResolveTypeHandle(int typeToken);
public RuntimeTypeHandle ResolveTypeHandle(int typeToken);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimming changes metadata tokens")>]
member this.ResolveTypeHandle : int -> RuntimeTypeHandle
member this.ResolveTypeHandle : int -> RuntimeTypeHandle
Public Function ResolveTypeHandle (typeToken As Integer) As RuntimeTypeHandle

パラメーター

typeToken
Int32

モジュール内の型を識別するメタデータ トークン。

返品

RuntimeTypeHandleによって識別される型のtypeToken

属性

例外

typeToken は、現在のモジュール内の型の有効なメタデータ トークンではありません。

-又は-

typeToken は、現在のモジュールのスコープ内の型のトークンではありません。

-又は-

typeTokenは、シグネチャに要素型TypeSpecまたはvarが含まれるmvarです。

このメソッドは、空の型ハンドルで呼び出されます。

注釈

シグネチャに要素型TypeSpecまたはvarが含まれるmvarのメタデータ トークンを解決するには、ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[]) メソッドオーバーロードを使用します。これにより、必要なコンテキストを指定できます。

Note

メタデータ トークンに関する情報は、 共通言語インフラストラクチャ (CLI) のドキュメント(特にパーティション II: メタデータ定義とセマンティクス)にあります。

適用対象

ResolveTypeHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs
ソース:
RuntimeHandles.cs

指定したメタデータ トークンによって識別される型のランタイム型ハンドルを返します。トークンがスコープ内にある型とメソッドのジェネリック型引数を指定します。

public:
 RuntimeTypeHandle ResolveTypeHandle(int typeToken, cli::array <RuntimeTypeHandle> ^ typeInstantiationContext, cli::array <RuntimeTypeHandle> ^ methodInstantiationContext);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimming changes metadata tokens")]
public RuntimeTypeHandle ResolveTypeHandle(int typeToken, RuntimeTypeHandle[]? typeInstantiationContext, RuntimeTypeHandle[]? methodInstantiationContext);
public RuntimeTypeHandle ResolveTypeHandle(int typeToken, RuntimeTypeHandle[]? typeInstantiationContext, RuntimeTypeHandle[]? methodInstantiationContext);
public RuntimeTypeHandle ResolveTypeHandle(int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimming changes metadata tokens")>]
member this.ResolveTypeHandle : int * RuntimeTypeHandle[] * RuntimeTypeHandle[] -> RuntimeTypeHandle
member this.ResolveTypeHandle : int * RuntimeTypeHandle[] * RuntimeTypeHandle[] -> RuntimeTypeHandle
Public Function ResolveTypeHandle (typeToken As Integer, typeInstantiationContext As RuntimeTypeHandle(), methodInstantiationContext As RuntimeTypeHandle()) As RuntimeTypeHandle

パラメーター

typeToken
Int32

モジュール内の型を識別するメタデータ トークン。

typeInstantiationContext
RuntimeTypeHandle[]

トークンがスコープ内にある型のジェネリック型引数を表す RuntimeTypeHandle 構造体の配列。その型がジェネリックでない場合は null

methodInstantiationContext
RuntimeTypeHandle[]

トークンがスコープ内にあるメソッドのジェネリック型引数を表す RuntimeTypeHandle 構造体オブジェクトの配列。そのメソッドがジェネリックでない場合は null

返品

RuntimeTypeHandleによって識別される型のtypeToken

属性

例外

typeToken は、現在のモジュール内の型の有効なメタデータ トークンではありません。

-又は-

typeToken は、現在のモジュールのスコープ内の型のトークンではありません。

-又は-

typeTokenは、シグネチャに要素型TypeSpecまたはvarが含まれるmvarです。

このメソッドは、空の型ハンドルで呼び出されます。

typeToken は有効なトークンではありません。

注釈

Note

メタデータ トークンに関する情報は、 共通言語インフラストラクチャ (CLI) のドキュメント(特にパーティション II: メタデータ定義とセマンティクス)にあります。

適用対象