ISymbolWriter.DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32) ISymbolWriter.DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32) ISymbolWriter.DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32) ISymbolWriter.DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32) Method

Definición

Define un campo de un campo global o tipo.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)

Parámetros

parent
SymbolToken SymbolToken SymbolToken SymbolToken

Tipo de metadatos o símbolo (token) del método.The metadata type or method token.

name
String String String String

Nombre de campo.The field name.

attributes
FieldAttributes FieldAttributes FieldAttributes FieldAttributes

Combinación bit a bit de los atributos del campo.A bitwise combination of the field attributes.

signature
Byte[]

Firma del campo.The field signature.

addrKind
SymAddressKind SymAddressKind SymAddressKind SymAddressKind

Tipos de dirección de addr1 y addr2.The address types for addr1 and addr2.

addr1
Int32 Int32 Int32 Int32

Primera dirección de la especificación de campo.The first address for the field specification.

addr2
Int32 Int32 Int32 Int32

Segunda dirección de la especificación de campo.The second address for the field specification.

addr3
Int32 Int32 Int32 Int32

Tercera dirección de la especificación de campo.The third address for the field specification.

Comentarios

El DefineField método define una única variable que no está dentro de un método usando campos especificados en clases, campos de bits, etc.The DefineField method defines a single variable that is not within a method by using specified fields in classes, bit fields, and so on.

Se aplica a