ISymbolWriter.DefineField Metoda

Definicja

Definiuje pole typu lub pola globalnego.

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

Token typu metadanych lub metody.

name
String

Nazwa pola.

attributes
FieldAttributes

Bitowa kombinacja atrybutów pola.

signature
Byte[]

Podpis pola.

addrKind
SymAddressKind

Typy adresów dla addr1 i addr2.

addr1
Int32

Pierwszy adres specyfikacji pola.

addr2
Int32

Drugi adres specyfikacji pola.

addr3
Int32

Trzeci adres specyfikacji pola.

Uwagi

Metoda DefineField definiuje pojedynczą zmienną, która nie należy do metody przy użyciu określonych pól w klasach, polach bitowych itd.

Dotyczy