ISymbolWriter.DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32) 方法
定义
在类型或全局字段中定义字段。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)
参数
- 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
addr1 和 addr2 的地址类型。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.
注解
DefineField方法通过使用类中的指定字段、位域等来定义一个不在方法中的变量。The DefineField method defines a single variable that is not within a method by using specified fields in classes, bit fields, and so on.