ICorDebugType2 Interface

Extends the ICorDebugType interface to retrieve the type identifier of a base type or complex (user-defined) type.

Methods

Method Description
GetTypeID Method Gets a COR_TYPEID for this type.

Remarks

This interface is a logical extension of the ICorDebugType interface.

Note

This interface does not support being called remotely, either cross-machine or cross-process.

Example

The following code fragment illustrates the use of the ICorDebugType2::GetTypeID method.

// (error checking omitted for brevity)  
// given an ICorDebugType *pType  
  
ICorDebugType2 *pType2 = NULL;  
pType->QueryInterface(IID_ICorDebugType2, &pType);  
  
COR_TYPEID id;  
pType2->GetTypeID(&id);  
  
// now we can use existing APIs to get information about this COR_TYPEID  

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6.2

See also