共用方式為


ICorDebugModule::GetGlobalVariableValue 方法

更新:2007 年 11 月

取得指定之全域變數的值。

HRESULT GetGlobalVariableValue(
    [in]  mdFieldDef      fieldDef,
    [out] ICorDebugValue  **ppValue
);

參數

  • fieldDef
    [in] mdFieldDef 語彙基元,它會參考說明全域變數的中繼資料。

  • ppValue
    [out] ICorDebugValue 物件位址的指標,表示指定之全域變數的值。

需求

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

請參閱

參考

ICorDebugModule

ICorDebugModule2