ICorDebugVariableSymbol 介面ICorDebugVariableSymbol Interface

擷取變數的偵錯符號資訊。Retrieves the debug symbol information for a variable.


方法Method 描述Description
GetName 方法GetName Method 取得變數的名稱。Gets the name of a variable.
GetSize 方法GetSize Method 取得變數的大小 (以位元組為單位)。Gets the size of a variable in bytes.
GetSlotIndex 方法GetSlotIndex Method 取得區域變數的 Managed 位置索引。Gets the managed slot index of a local variable.
GetValue 方法GetValue Method 取得變數的值做為位元組陣列。Gets the value of a variable as a byte array.
SetValue 方法SetValue Method 指派位元組陣列的值給變數。Assigns the value of a byte array to a variable.



這個介面僅適用於 .NET 原生。This interface is available with .NET Native only. 如果您在 .NET 原生之外針對 ICorDebug 案例實作這個介面,Common Language Runtime 會忽略這個介面。If you implement this interface for ICorDebug scenarios outside of .NET Native, the common language runtime will ignore this interface.


平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.6 開始提供,僅限 .NET NativeAvailable since 4.6, .NET Native only.NET Framework Versions: 自 4.6 開始提供,僅限 .NET NativeAvailable since 4.6, .NET Native only

另請參閱See also