語言

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

地址類型 addr1分別為 、 addr2、 addr3和 。

addr1
Int32

全域變數規範的第一個地址。

addr2
Int32

全域變數規範的第二個地址。

addr3
Int32

這是全域變數規範的第三個地址。

適用於