共用方式為


ICorDebugType 介面

表示型別,可以是基本型別或複雜型別 (亦即,使用者定義的型別)。 如果是泛型型別,則 ICorDebugType 表示執行個體化的泛型型別。

方法

方法

描述

ICorDebugType::EnumerateTypeParameters 方法

取得 ICorDebugTypeEnum 的介面指標,參考此 ICorDebugType 所參考之類別的泛型 Type 參數。

ICorDebugType::GetBase 方法

取得 ICorDebugType 的介面指標,其會參考此 ICorDebugType 所參考的類別之基底類別 (如果有存在的話)。

ICorDebugType::GetClass 方法

取得 ICorDebugClass 的介面指標,參考此 ICorDebugType 的型別建構函式。

ICorDebugType::GetFirstTypeParameter 方法

取得 ICorDebugType 的介面指標,其會參考此 ICorDebugType 所參考的類別之建構函式的第一個泛型 Type 參數。

ICorDebugType::GetRank 方法

取得陣列型別中維度的數目。

ICorDebugType::GetStaticFieldValue 方法

取得 ICorDebugValue 的介面指標,其中包含指定之堆疊框架 (Stack Frame) 中,指定欄位語彙基元所參考的靜態欄位值。

ICorDebugType::GetType 方法

取得 CorElementType 值,描述此 ICorDebugType 所參考的 Common Language Runtime Type 的原生型別。

備註

如果是泛型型別,則 ICorDebugClass 表示未執行個體化的型別。 ICorDebugType 介面表示執行個體化的泛型型別。 例如,Hashtable<K, V> 由 ICorDebugClass 表示,而 Hashtable<Int32, String> 則由 ICorDebugType 表示。

非泛型型別由 ICorDebugClassICorDebugType 表示。 .NET Framework 2.0 版引入後者介面,以處理型別執行個體化。

注意事項注意事項

這個介面不支援遠端呼叫,不論是跨電腦或跨處理序。

需求

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

請參閱

其他資源

偵錯介面