包含類型識別項。Contains a type identifier.


typedef struct COR_TYPEID{  
    UINT64 token1;  
    UINT64 token2;  


memberMember 描述Description
token1 第一個 token。The first token.
token2 第二個 token。The second token.


COR_TYPEID 結構是由許多偵錯工具方法所傳回,這些方法提供要進行垃圾收集之物件的相關資訊。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. 例如,藉由列舉 ICorDebugHeapEnum 物件,您可以取得個別 COR_HEAPOBJECT 物件,這些物件代表 managed 堆積上的個別物件。For example, by enumerating an ICorDebugHeapEnum object, you can retrieve individual COR_HEAPOBJECT objects that represent individual objects on the managed heap. 然後,您可以將此 COR_TYPEID 值從 COR_HEAPOBJECT.type 欄位傳遞到 ICorDebugProcess5:: GetTypeForTypeID 方法,以取得提供物件類型資訊的 ICorDebugType 物件。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.

物件應為 COR_TYPEID 不透明。A COR_TYPEID object is intended to be opaque. 不應存取或操作其個別欄位。Its individual fields should not be accessed or manipulated. 其唯一用途是做為方法呼叫中的參數提供的識別碼, out 而且可以傳遞給其他方法以提供其他資訊。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.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 4.5 起可用Available since 4.5.NET Framework Versions: 自 4.5 起可用Available since 4.5

另請參閱See also