ICorDebugModule2::SetJITCompilerFlags 方法

设置用于控制此 ICorDebugModule2 的实时 (JIT) 编译的标志。

语法

HRESULT SetJITCompilerFlags (  
    [in] DWORD dwFlags  
);  

参数

dwFlags
[in] CorDebugJITCompilerFlags 枚举值的按位组合。

备注

如果 dwFlags 值无效,则 SetJITCompilerFlags 方法将失败。

只能在此模块的 ICorDebugManagedCallback::LoadModule 回调中调用 SetJITCompilerFlags 方法。 在传递回调 ICorDebugManagedCallback::LoadModule 后,尝试调用它将会失败。

64 位或 Win9x 平台不支持“编辑并继续”。 因此,如果在其中任一平台上调用 SetJITCompilerFlags 方法,且 dwFlags 中设置了 CORDEBUG_JIT_ENABLE_ENC 标志,则 SetJITCompilerFlags 方法和特定于“编辑并继续”的所有方法(例如 ICorDebugModule2::ApplyChanges)将会失败。

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:自 2.0 起可用