ModuleBuilder.GetFieldToken Method

Returns the token used to identify the specified field within this module.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public FieldToken GetFieldToken(
	FieldInfo field
)

Parameters

field
Type: System.Reflection.FieldInfo
The field to get a token for.

Return Value

Type: System.Reflection.Emit.FieldToken
The token used to identify the specified field within this module.

ExceptionCondition
ArgumentNullException

field is null.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: