ICorDebugClass
更新:2007 年 11 月
表示型別,可以是基本型別或複雜型別 (亦即,使用者定義型別)。如果是泛型型別,則 ICorDebugClass 表示未執行個體化的泛型型別。
interface ICorDebugClass : IUnknown {
HRESULT GetModule (
[out] ICorDebugModule **pModule
);
HRESULT GetStaticFieldValue (
[in] mdFieldDef fieldDef,
[in] ICorDebugFrame *pFrame,
[out] ICorDebugValue **ppValue
);
HRESULT GetToken (
[out] mdTypeDef *pTypeDef
);
};
方法
方法 |
說明 |
---|---|
取得會定義此類別的模組。 |
|
取得指定之靜態欄位的值。 |
|
取得此類別的 TypeDef 中繼資料語彙基元。 |
備註
ICorDebugClass 介面代表未執行個體化的泛型型別。ICorDebugType 介面代表執行個體化的泛型型別。例如,Hashtable<K, V> 由 ICorDebugClass 表示,而 Hashtable<Int32, String> 則由 ICorDebugType 表示。
非泛型型別由 ICorDebugClass 和 ICorDebugType 表示。.NET Framework 2.0 版引入後者介面,以處理型別執行個體化。
需求
**平台:**請參閱 .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