Export (0) Print
Expand All

ISymbolWriter.DefineField Method

Defines a field in a type or a global field.

[Visual Basic]
Sub DefineField( _
   ByVal parent As SymbolToken, _
   ByVal name As String, _
   ByVal attributes As FieldAttributes, _
   ByVal signature() As Byte, _
   ByVal addrKind As SymAddressKind, _
   ByVal addr1 As Integer, _
   ByVal addr2 As Integer, _
   ByVal addr3 As Integer _
)
[C#]
void DefineField(
   SymbolToken parent,
 string name,
 FieldAttributes attributes,
 byte[] signature,
 SymAddressKind addrKind,
 int addr1,
 int addr2,
 int addr3
);
[C++]
void DefineField(
   SymbolToken parent,
 String* name,
 FieldAttributes attributes,
 unsigned char signature __gc[],
 SymAddressKind addrKind,
 int addr1,
 int addr2,
 int addr3
);
[JScript]
function DefineField(
   parent : SymbolToken,
 name : String,
 attributes : FieldAttributes,
 signature : Byte[],
 addrKind : SymAddressKind,
 addr1 : int,
 addr2 : int,
 addr3 : int
);

Parameters

parent
The metadata type or method token.
name
The field name.
attributes
The field attributes specified using the FieldAttributes enumerator.
signature
The field signature.
addrKind
The address types for addr1 and addr2 using SymAddressKind.
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 DefineField method defines a single variable that is not within a method using specified fields in classes, bit fields, and so on.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ISymbolWriter Interface | ISymbolWriter Members | System.Diagnostics.SymbolStore Namespace

Show:
© 2014 Microsoft