ICorDebugType::GetType Method

Gets a CorElementType value that describes the native type of the common language runtime (CLR) Type represented by this ICorDebugType.

Syntax

HRESULT GetType (  
    [out] CorElementType   *ty  
);  

Parameters

ty
[out] A pointer to a value of the CorElementType enumeration that indicates the CLR Type that this ICorDebugType represents.

Remarks

If the value of ty is either ELEMENT_TYPE_CLASS or ELEMENT_TYPE_VALUETYPE, the ICorDebugType::GetClass method may be called to get the uninstantiated type for a generic type; otherwise, do not call ICorDebugType::GetClass.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0