ICorDebugVariableSymbol::GetValue 方法

获取作为字节数组的变量的值。

语法

HRESULT GetValue(  
   [in] ULONG32 offset,  
   [in] ULONG32 cbContext,  
   [in, size_is(cbContext)] BYTE context[],  
   [in] ULONG32 cbValue,  
   [out] ULONG32 *pcbValue,  
   [out, size_is(cbValue), length_is(*pcbValue)] BYTE pValue[]  
);  

参数

offset
[in] 从其读取值的变量中的起始偏移量。 读取对象中的成员字段时使用此参数。

cbContext
[in] context 参数的大小(以字节为单位)。

context
[in] 用于读取值的线程上下文。

cbValue
[in] pValue 缓冲区的大小(以字节为单位)。

pcbValue
[out] 实际写入 pValue 缓冲区的字节数。

pValue
[out] 包含变量值的字节数组。

备注

注意

此方法仅适用于 .NET Native。

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:4.6 及更高版本,仅限 .NET Native

请参阅