Delen via


ICorDebugType::GetType Method

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

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 .NET Framework System Requirements.

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

ICorDebugType Interface