ICorDebugValue

更新:2007 年 11 月

表示正在被调试的进程中的值。此值可以是读取值或写入值。

interface ICorDebugValue : IUnknown {
        
    HRESULT CreateBreakpoint (
        [out] ICorDebugValueBreakpoint **ppBreakpoint
    );
        
    HRESULT GetAddress (
        [out] CORDB_ADDRESS            *pAddress
    );
        
    HRESULT GetSize (
        [out] ULONG32                  *pSize
    );
        
    HRESULT GetType (
        [out] CorElementType           *pType
    );
        
};

方法

方法

说明

ICorDebugValue::CreateBreakpoint 方法

当前未实现此方法。

ICorDebugValue::GetAddress 方法

获取正在调试的此 ICorDebugValue 对象的地址。

ICorDebugValue::GetSize 方法

获取此 ICorDebugValue 对象的大小(以字节为单位)。

ICorDebugValue::GetType 方法

获取此 ICorDebugValue 对象的基元类型。

备注

通常,返回值对象时会传递该对象的所属权。接收者负责在处理完对象后移除从该对象进行的引用。

根据检索到值的位置,该值在进程继续后可能不会保持有效。因此,通常不应在调用 ICorDebugController::Continue 方法期间保留该值。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugGenericValue

ICorDebugHeapValue

ICorDebugHeapValue2

ICorDebugValue2

其他资源

调试接口