System.ModuleHandle.ResolveFieldHandle Method

Returns a runtime handle for the field identified by the specified metadata token.

Syntax

public RuntimeFieldHandle ResolveFieldHandle (int fieldToken)

Parameters

fieldToken
A metadata token that identifies a field in the module.

Returns

A RuntimeFieldHandle for the field identified by fieldToken.

Remarks

To resolve a metadata token that identifies a field whose parent TypeSpec has a signature containing element type var or mvar, use the ModuleHandle.ResolveFieldHandle(int, RuntimeTypeHandle[], RuntimeTypeHandle[]) method overload, which allows you to supply the necessary context.

Note:

Information about metadata tokens can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0