ISymbolWriter.DefineField Method

Defines a field in a type or a global field.

Namespace:  System.Diagnostics.SymbolStore
Assembly:  mscorlib (in mscorlib.dll)

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


Type: System.Diagnostics.SymbolStore.SymbolToken

The metadata type or method token.

Type: System.String

The field name.

Type: System.Reflection.FieldAttributes

A bitwise combination of the field attributes.

Type: System.Byte[]

The field signature.

Type: System.Diagnostics.SymbolStore.SymAddressKind

The address types for addr1 and addr2.

Type: System.Int32

The first address for the field specification.

Type: System.Int32

The second address for the field specification.

Type: System.Int32

The third address for the field specification.

The DefineField method defines a single variable that is not within a method by using specified fields in classes, bit fields, and so on.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft