ModuleHandle.ResolveFieldHandle メソッド

定義

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

オーバーロード

名前 説明
ResolveFieldHandle(Int32)

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

ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

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

ResolveFieldHandle(Int32)

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

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

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

パラメーター

fieldToken
Int32

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

返品

RuntimeFieldHandleによって識別されるフィールドのfieldToken

属性

例外

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

-又は-

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

-又は-

fieldToken は、親 TypeSpec が要素型 var または mvarを含むシグネチャを持つフィールドを識別します。

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

注釈

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

Note

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

適用対象

ResolveFieldHandle(Int32, RuntimeTypeHandle[], RuntimeTypeHandle[])

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

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

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

パラメーター

fieldToken
Int32

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

typeInstantiationContext
RuntimeTypeHandle[]

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

methodInstantiationContext
RuntimeTypeHandle[]

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

返品

RuntimeFieldHandleによって識別されるフィールドのfieldToken

属性

例外

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

-又は-

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

-又は-

fieldToken は、親 TypeSpec が要素型 var または mvarを含むシグネチャを持つフィールドを識別します。

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

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

注釈

Note

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

適用対象