System.Diagnostics.SymbolStore.ISymbolWriter.DefineField Method

Defines a field in a type or a global field.

Syntax

public void DefineField (SymbolToken parent, string name, System.Reflection.FieldAttributes attributes, byte[] signature, SymAddressKind addrKind, int addr1, int addr2, int addr3)

Parameters

parent
The metadata type or method token.
name
The field name.
attributes
A bitwise combination of the field attributes.
signature
The field signature.
addrKind
The address types for addr1 and addr2.
addr1
The first address for the field specification.
addr2
The second address for the field specification.
addr3
The third address for the field specification.

Remarks

The ISymbolWriter.DefineField(SymbolToken, string, System.Reflection.FieldAttributes, Byte[], SymAddressKind, int, int, int) method defines a single variable that is not within a method by using specified fields in classes, bit fields, and so on.

Requirements

Namespace: System.Diagnostics.SymbolStore
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0