Share via


ICorDebugValue::GetType Method

Gets the primitive type of this ICorDebugValue Interface object.

HRESULT GetType (
    [out] CorElementType           *pType
);

Parameters

Parameter Description

pType

[out] A pointer to a value of the CorElementType Enumeration enumeration that indicates the value's type.

Remarks

If the object is a complex run-time type, that type may be examined through the appropriate subclasses of the ICorDebugValue Interface interface. For example, ICorDebugObjectValue Interface, which inherits from ICorDebugValue Interface, represents a complex type.

The GetType and ICorDebugObjectValue::GetClass Method methods each return information about the type of a value; they are both superseded by the generics-aware ICorDebugValue2::GetExactType Method.

Requirements

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

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Reference

ICorDebugValue Interface