COR_TYPEID Structure

Contains a type identifier.


typedef struct COR_TYPEID{  
    UINT64 token1;  
    UINT64 token2;  


Member Description
token1 The first token.
token2 The second token.


The COR_TYPEID structure is returned by a number of debugging methods that provide information about objects to be garbage-collected. It can then be passed as an argument to other debugging methods that provide additional information about that item. For example, by enumerating an ICorDebugHeapEnum object, you can retrieve individual COR_HEAPOBJECT objects that represent individual objects on the managed heap. You can then pass the COR_TYPEID value from the COR_HEAPOBJECT.type field to the ICorDebugProcess5::GetTypeForTypeID method to retrieve an ICorDebugType object that provides type information about the object.

A COR_TYPEID object is intended to be opaque. Its individual fields should not be accessed or manipulated. Its sole use is as an identifier that is provided as an out parameter in a method call and that can, in turn, be passed to other methods to provide additional information.


Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also