更新: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