分享方式:


ICorDebugProcess6::DecodeEvent 方法

對已封裝在特殊設計之原生例外狀況偵錯事件承載中的 Managed 偵錯事件進行解碼。

語法

HRESULT DecodeEvent(  
        [in, length_is(countBytes), size_is(countBytes)]  const BYTE pRecord[],  
        [in] DWORD countBytes,  
        [in] CorDebugRecordFormat format,  
        [in] DWORD dwFlags,
        [in] DWORD dwThreadId,
        [out] ICorDebugDebugEvent **ppEvent  
);  

參數

pRecord
[in] 原生例外狀況偵錯事件中的位元組陣列指標,該事件包含 Managed 偵錯事件的相關資訊。

countBytes
[in] pRecord 位元組陣列中的項目數。

format
[in] CorDebugRecordFormat 列舉成員,可指定非受控偵錯事件的格式。

dwFlags
[in] 相依於目標架構並指定偵錯事件之其他資訊的位元欄位。 若為 Windows 系統,可以是 CorDebugDecodeEventFlagsWindows 列舉的成員。

dwThreadId
[in] 擲回例外狀況之執行緒的作業系統識別項。

ppEvent
[out] ICorDebugDebugEvent物件的位址指標,代表已解碼的受控偵錯事件。

備註

注意

這個方法僅適用於 .NET Native。

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 4.6 起提供,.NET Native

另請參閱