ICorDebugClass::GetStaticFieldValue 方法
取得指定之靜態欄位的值。
HRESULT GetStaticFieldValue (
[in] mdFieldDef fieldDef,
[in] ICorDebugFrame *pFrame,
[out] ICorDebugValue **ppValue
);
參數
fieldDef
[in] 欄位 Def 語彙基元,表示要擷取的欄位。pFrame
[in] ICorDebugFrame 物件的指標,這個物件代表要用於釐清執行緒、內容或應用程式定義域靜態變數的框架。如果靜態欄位相對於執行緒、內容或應用程式定義域,框架將判斷適當的值。
ppValue
[out] ICorDebugValue 物件之位址的指標,這個物件代表靜態欄位的值。
備註
若是參數化型別,靜態欄位的值會相對於特定執行個體化 (Instantiation)。 因此,如果類別建構函式 (Constructor) 使用型別 Type 的參數,請呼叫 ICorDebugType::GetStaticFieldValue,而不是 ICorDebugClass::GetStaticFieldValue。
需求
**平台:**請參閱 .NET Framework 系統需求。
**標頭:**CorDebug.idl、CorDebug.h
**程式庫:**CorGuids.lib
**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0