ICorDebugVariableHome:: GetOffset 方法ICorDebugVariableHome::GetOffset Method

取得變數基底暫存器的位移。Gets the offset from the base register for a variable.


HRESULT GetOffset(  
    [out] LONG *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.


平台: 請參閱 系統需求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

另請參閱See also