ICorDebugType Interface
Represents a type, either basic or complex (that is, user-defined). If the type is generic, ICorDebugType
represents the instantiated generic type.
Methods
Method | Description |
---|---|
EnumerateTypeParameters Method | Gets an interface pointer to an ICorDebugTypeEnum that references the generic Type parameters of the class referenced by this ICorDebugType . |
GetBase Method | Gets an interface pointer to an ICorDebugType that references the base class of the class referenced by this ICorDebugType , if one exists. |
GetClass Method | Gets an interface pointer to an ICorDebugClass that references the typed constructor of this ICorDebugType . |
GetFirstTypeParameter Method | Gets an interface pointer to an ICorDebugType that references the first generic Type parameter for the constructor of the class referenced by this ICorDebugType . |
GetRank Method | Gets the number of dimensions in an array type. |
GetStaticFieldValue Method | 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 Method | Gets a CorElementType value that describes the native type of the common language runtime Type referenced by this ICorDebugType . |
Remarks
If the type is generic, ICorDebugClass
represents the uninstantiated type. The ICorDebugType
interface represents an instantiated generic type. For example, Hashtable<K, V> would be represented by ICorDebugClass
, whereas Hashtable<Int32, String> would be represented by ICorDebugType
.
Non-generic types are represented by both ICorDebugClass
and ICorDebugType
. The latter interface was introduced in the .NET Framework version 2.0 to deal with type instantiation.
Note
This interface does not support being called remotely, either cross-machine or cross-process.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za