ICorDebugVariableHome:: GetOffset 方法ICorDebugVariableHome::GetOffset Method
取得變數基底暫存器的位移。Gets the offset from the base register for a variable.
語法Syntax
HRESULT GetOffset(
[out] LONG *pOffset
);
參數Parameters
pOffset
擴展基底註冊的位移。[out] The offset from the base register.
傳回值Return Value
方法會傳回下列值:The method returns the following values:
值Value | 描述Description |
---|---|
S_OK |
變數位於暫存器相對的記憶體位置。The variable is in a register-relative memory location. |
E_FAIL |
變數不在暫存器相對的記憶體位置。The variable is not in a register-relative memory location. |
需求Requirements
平台: 請參閱 系統需求。Platforms: See System Requirements.
標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h
程式庫: CorGuids.libLibrary: CorGuids.lib
.NET Framework 版本:自 4.6.2 起可用Available since 4.6.2.NET Framework Versions: 自 4.6.2 起可用Available since 4.6.2