Rediger

Del via


ICorDebugVariableHome::GetRegister Method

Gets the register that contains a variable with a location type of VLT_REGISTER, and the base register for a variable with a location type of VLT_REGISTER_RELATIVE.

Syntax

HRESULT GetRegister(  
    [out] CorDebugRegister *pRegister  
);  

Parameters

pRegister
[out] A CorDebugRegister enumeration value that indicates the register for a variable with a location type of VLT_REGISTER, and the base register for a variable with a location type of VLT_REGISTER_RELATIVE.

Return Value

The method returns the following values:

Value Description
S_OK The variable is in the register indicated by the pRegister argument.
E_FAIL The variable is not in a register or a register-relative location.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6.2

See also