ISymbolWriter.DefineField Method

Defines a field in a type or a global field.

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

Sub DefineField ( _
	parent As SymbolToken, _
	name As String, _
	attributes As FieldAttributes, _
	signature As Byte(), _
	addrKind As SymAddressKind, _
	addr1 As Integer, _
	addr2 As Integer, _
	addr3 As Integer _
Dim instance As ISymbolWriter
Dim parent As SymbolToken
Dim name As String
Dim attributes As FieldAttributes
Dim signature As Byte()
Dim addrKind As SymAddressKind
Dim addr1 As Integer
Dim addr2 As Integer
Dim addr3 As Integer

instance.DefineField(parent, name, attributes, signature, addrKind, addr1, addr2, addr3)
void DefineField (
	SymbolToken parent, 
	String name, 
	FieldAttributes attributes, 
	byte[] signature, 
	SymAddressKind addrKind, 
	int addr1, 
	int addr2, 
	int addr3
function DefineField (
	parent : SymbolToken, 
	name : String, 
	attributes : FieldAttributes, 
	signature : byte[], 
	addrKind : SymAddressKind, 
	addr1 : int, 
	addr2 : int, 
	addr3 : int
Not applicable.



The metadata type or method token.


The field name.


The field attributes specified using the FieldAttributes enumerator.


The field signature.


The address types for addr1 and addr2 using SymAddressKind.


The first address for the field specification.


The second address for the field specification.


The third address for the field specification.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions