다음을 통해 공유


ICorDebugType Interface

Represents a type, either basic or complex (that is, user-defined). If the type is generic, ICorDebugType represents the instantiated generic type.

interface ICorDebugType : IUnknown {
        
    HRESULT EnumerateTypeParameters (
        [out] ICorDebugTypeEnum  **ppTyParEnum
    );
        
    HRESULT GetBase (
        [out] ICorDebugType      **pBase
    );
        
    HRESULT GetClass (
        [out] ICorDebugClass     **ppClass
    );
        
    HRESULT GetFirstTypeParameter (
        [out] ICorDebugType      **value
    );
        
    HRESULT GetRank (
        [out] ULONG32            *pnRank
    );
        
    HRESULT GetStaticFieldValue (
        [in] mdFieldDef          fieldDef,
        [in] ICorDebugFrame      *pFrame,
        [out] ICorDebugValue     **ppValue
    );
        
    HRESULT GetType (
        [out] CorElementType     *ty
    );
        
};

Methods

Method

Description

ICorDebugType::EnumerateTypeParameters Method

Gets an interface pointer to an ICorDebugTypeEnum that references the generic Type parameters of the class referenced by this ICorDebugType.

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.

ICorDebugType::GetClass Method

Gets an interface pointer to an ICorDebugClass that references the typed constructor of this ICorDebugType.

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.

ICorDebugType::GetRank Method

Gets the number of dimensions in an array type.

ICorDebugType::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.

ICorDebugType::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.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

Debugging Interfaces