ModuleBuilder.GetFieldToken Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Returns the token used to identify the specified field within this module.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Function GetFieldToken ( _
field As FieldInfo _
) As FieldToken
[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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | field is nulla null reference (Nothing in Visual Basic). |
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.