ISymbolWriter.DefineField Method (SymbolToken, String, FieldAttributes, Byte(), SymAddressKind, Int32, Int32, Int32)
Defines a field in a type or a global field.
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 )
Parameters
- parent
-
Type:
System.Diagnostics.SymbolStore.SymbolToken
The metadata type or method token.
- name
-
Type:
System.String
The field name.
- attributes
-
Type:
System.Reflection.FieldAttributes
A bitwise combination of the field attributes.
- signature
-
Type:
System.Byte()
The field signature.
- addrKind
-
Type:
System.Diagnostics.SymbolStore.SymAddressKind
The address types for addr1 and addr2.
- addr1
-
Type:
System.Int32
The first address for the field specification.
- addr2
-
Type:
System.Int32
The second address for the field specification.
- addr3
-
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.
Available since 1.1