ICorDebugClass 介面ICorDebugClass Interface

表示類型,可以是基本類型或複雜類型 (亦即,使用者定義類型)。Represents a type, which can be either basic or complex (that is, user-defined). 如果是泛型類型,則 ICorDebugClass 表示未具現化的泛型類型。If the type is generic, ICorDebugClass represents the uninstantiated generic type.


方法Method 描述Description
GetModule 方法GetModule Method 取得定義這個類別的模組。Gets the module that defines this class.
GetStaticFieldValue 方法GetStaticFieldValue Method 取得指定之靜態欄位的值。Gets the value of the specified static field.
GetToken 方法GetToken Method 取得 TypeDef 這個類別的元資料標記。Gets the TypeDef metadata token for this class.


ICorDebugClass介面代表未具現化的泛型型別。The ICorDebugClass interface represents an uninstantiated generic type. ICorDebugType 介面代表具現化的泛型型別。The ICorDebugType interface represents an instantiated generic type. 例如,會 Hashtable<K, V> 以表示 ICorDebugClass ,而則會以 Hashtable<Int32, String> 表示 ICorDebugTypeFor example, Hashtable<K, V> would be represented by ICorDebugClass, whereas Hashtable<Int32, String> would be represented by ICorDebugType.

非泛型型別是由 ICorDebugClass 和表示 ICorDebugTypeNon-generic types are represented by both ICorDebugClass and ICorDebugType. 第二個介面是在 .NET Framework 版本2.0 中引進,以處理型別具現化。The latter interface was introduced in the .NET Framework version 2.0 to deal with type instantiation.


這個介面不支援跨電腦或跨處理序的遠端呼叫。This interface does not support being called remotely, either cross-machine or cross-process.


平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 1.0 起可用Available since 1.0.NET Framework Versions: 自 1.0 起可用Available since 1.0

另請參閱See also