共用方式為


ICorDebugObjectValue

更新:2007 年 11 月

ICorDebugValue 的子類別,表示包含物件的值。

interface ICorDebugObjectValue : ICorDebugValue {
        
    HRESULT GetClass (
        [out] ICorDebugClass     **ppClass
    );
        
    HRESULT GetContext (
        [out] ICorDebugContext   **ppContext
    );
        
    HRESULT GetFieldValue (
        [in] ICorDebugClass      *pClass,
        [in] mdFieldDef          fieldDef,
        [out] ICorDebugValue     **ppValue
    );
        
    HRESULT GetManagedCopy (
        [out] IUnknown           **ppObject
    );
        
    HRESULT GetVirtualMethod (
        [in] mdMemberRef         memberRef,
        [out] ICorDebugFunction  **ppFunction
    );
        
    HRESULT IsValueClass (
        [out] BOOL               *pbIsValueClass
    );
        
    HRESULT SetFromManagedCopy (
        [in] IUnknown            *pObject
    );
        
};

方法

方法

描述

ICorDebugObjectValue::GetClass 方法

取得介面指標,指向此 ICorDebugObjectValue 所參考之物件的 Common Language Runtime (CLR) Type

ICorDebugObjectValue::GetContext 方法

尚未實作。

ICorDebugObjectValue::GetFieldValue 方法

取得 ICorDebugValue 的介面指標,表示指定類別之指定欄位的值。

ICorDebugObjectValue::GetManagedCopy 方法

已過時。請勿呼叫這個方法。

ICorDebugObjectValue::GetVirtualMethod 方法

尚未實作。

ICorDebugObjectValue::IsValueClass 方法

取得值,指出此 ICorDebugObjectValue 所參考的物件是否為實值型別。

ICorDebugObjectValue::SetFromManagedCopy 方法

已過時。請勿呼叫這個方法。

備註

ICorDebugObjectValue 在繼續進行所偵錯的處理序之前,會維持在有效狀態。

需求

**平台:**請參閱 .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

請參閱

參考

ICorDebugObjectValue2

其他資源

偵錯介面