ICorDebugModule2::SetJITCompilerFlags 方法

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

HRESULT SetJITCompilerFlags (
    [in] DWORD dwFlags
);

参数

备注

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

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

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

要求

**平台:**请参见 .NET Framework 系统要求

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0

请参见

参考

ICorDebugModule2 接口

ICorDebugModule 接口