ICorDebugProcess::EnableLogMessages 方法

启用和禁用向调试器传输日志消息。

语法

HRESULT EnableLogMessages([in]BOOL fOnOff);  

参数

fOnOff
[in] true 启用日志消息的传输;false 禁用传输。

备注

此方法仅在发生 ICorDebugManagedCallback::CreateProcess 回叫后有效。

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:自 2.0 起可用