ISymbolWriter.DefineGlobalVariable 方法

定义

定义单个全局变量。

public:
 void DefineGlobalVariable(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 DefineGlobalVariable (string name, System.Reflection.FieldAttributes attributes, byte[] signature, System.Diagnostics.SymbolStore.SymAddressKind addrKind, int addr1, int addr2, int addr3);
abstract member DefineGlobalVariable : string * System.Reflection.FieldAttributes * byte[] * System.Diagnostics.SymbolStore.SymAddressKind * int * int * int -> unit
Public Sub DefineGlobalVariable (name As String, attributes As FieldAttributes, signature As Byte(), addrKind As SymAddressKind, addr1 As Integer, addr2 As Integer, addr3 As Integer)

参数

name
String

全局变量名称。

attributes
FieldAttributes

全局变量特性的按位组合。

signature
Byte[]

全局变量签名。

addrKind
SymAddressKind

addr1addr2addr3 的地址类型。

addr1
Int32

全局变量规格的第一个地址。

addr2
Int32

全局变量规格的第二个地址。

addr3
Int32

全局变量规格的第三个地址。

适用于