NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISymbolWriter.DefineField

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[],
   SymAddressKind addrKind,
   int addr1,
   int addr2,
   int addr3
) = 0;
[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 enum.
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.

See Also

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