Share via


ISymbolWriter.DefineField Metoda

Definice

Definuje pole v typu nebo globálním poli.

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)

Parametry

parent
SymbolToken

Typ metadat nebo token metody.

name
String

Název pole

attributes
FieldAttributes

Bitové kombinace atributů pole.

signature
Byte[]

Podpis pole.

addrKind
SymAddressKind

Typy adres pro addr1 a addr2.

addr1
Int32

První adresa pro specifikaci pole.

addr2
Int32

Druhá adresa pro specifikaci pole.

addr3
Int32

Třetí adresa pro specifikaci pole.

Poznámky

Metoda DefineField definuje jednu proměnnou, která není uvnitř metody, pomocí zadaných polí ve třídách, bitových polích atd.

Platí pro