共用方式為


ICorDebugType2 介面

擴充 ICorDebugType 介面,以便擷取基底類型或複雜 (使用者定義) 型別的型別識別碼。

方法

方法 描述
GetTypeID 方法 取得此型別的 COR_TYPEID

備註

此介面為 ICorDebugType 介面的邏輯延伸模組。

注意

這個介面不支援跨電腦或跨處理序的遠端呼叫。

範例

下列程式碼片段說明如何使用 ICorDebugType2::GetTypeID 方法。

// (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  

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 4.6.2 起可用

另請參閱