ICorDebugType 介面ICorDebugType Interface

代表型別,也就是「基本」或「複雜 (」,也就是使用者定義的) 。Represents a type, either basic or complex (that is, user-defined). 如果是泛型類型,則 ICorDebugType 表示具現化的泛型類型。If the type is generic, ICorDebugType represents the instantiated generic type.

方法Methods

方法Method 描述Description
EnumerateTypeParameters 方法EnumerateTypeParameters Method 取得 ICorDebugTypeEnum 的介面指標,該指標參考這個所 Type 參考之類別的泛型參數 ICorDebugTypeGets an interface pointer to an ICorDebugTypeEnum that references the generic Type parameters of the class referenced by this ICorDebugType.
GetBase 方法GetBase Method 取得的介面指標, ICorDebugType 該指標會參考這個所參考之類別的基類 ICorDebugType (如果有的話)。Gets an interface pointer to an ICorDebugType that references the base class of the class referenced by this ICorDebugType, if one exists.
GetClass 方法GetClass Method 取得 ICorDebugClass 的介面指標,該參考會參考此的具類型的函式 ICorDebugTypeGets an interface pointer to an ICorDebugClass that references the typed constructor of this ICorDebugType.
GetFirstTypeParameter 方法GetFirstTypeParameter Method 取得的介面指標 ICorDebugType ,該指標會參考這個所參考之類別的函式的第一個泛型 Type 參數 ICorDebugTypeGets an interface pointer to an ICorDebugType that references the first generic Type parameter for the constructor of the class referenced by this ICorDebugType.
GetRank 方法GetRank Method 取得陣列類型中的維度數目。Gets the number of dimensions in an array type.
GetStaticFieldValue 方法GetStaticFieldValue Method 取得 ICorDebugValue 的介面指標,其中包含指定之堆疊框架中指定之欄位標記所參考的靜態欄位值。Gets an interface pointer to an ICorDebugValue that contains the value of the static field referenced by the specified field token in the specified stack frame.
GetType 方法GetType Method 取得 CorElementType 值,這個值會描述這個所參考之 common language runtime 的原生類型 Type ICorDebugTypeGets a CorElementType value that describes the native type of the common language runtime Type referenced by this ICorDebugType.

備註Remarks

如果類型為泛型,則表示未具現化 ICorDebugClass 的類型。If the type is generic, ICorDebugClass represents the uninstantiated type. ICorDebugType介面代表具現化的泛型型別。The ICorDebugType interface represents an instantiated generic type. 例如,雜湊表會以 <K, V> 表示 ICorDebugClass ,而雜湊表 <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.

規格需求Requirements

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

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

程式庫: CorGuids.libLibrary: CorGuids.lib

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

另請參閱See also