ICorDebugModule::GetGlobalVariableValue 方法

取得指定全域變數的值。

語法

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

參數

fieldDef
[in] mdFieldDef 語彙基元,參考描述全域變數的中繼資料。

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

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 1.0 起提供