ISymbolWriter.DefineField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a field in a type or a global field.
public:
void DefineField(System::Diagnostics::SymbolStore::SymbolToken parent, System::String ^ name, System::Reflection::FieldAttributes attributes, cli::array <System::Byte> ^ signature, System::Diagnostics::SymbolStore::SymAddressKind addrKind, int addr1, int addr2, int addr3);
public void DefineField (System.Diagnostics.SymbolStore.SymbolToken parent, string name, System.Reflection.FieldAttributes attributes, byte[] signature, System.Diagnostics.SymbolStore.SymAddressKind addrKind, int addr1, int addr2, int addr3);
abstract member DefineField : System.Diagnostics.SymbolStore.SymbolToken * string * System.Reflection.FieldAttributes * byte[] * System.Diagnostics.SymbolStore.SymAddressKind * int * int * int -> unit
Public 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
- SymbolToken
The metadata type or method token.
- name
- String
The field name.
- attributes
- FieldAttributes
A bitwise combination of the field attributes.
- signature
- Byte[]
The field signature.
- addrKind
- SymAddressKind
The address types for addr1
and addr2
.
- addr1
- Int32
The first address for the field specification.
- addr2
- Int32
The second address for the field specification.
- addr3
- Int32
The third address for the field specification.
Remarks
The DefineField method defines a single variable that is not within a method by using specified fields in classes, bit fields, and so on.