共用方式為


ICorDebugModule2::SetJITCompilerFlags 方法

設定控制此 ICorDebugModule2 的 Just-In-Time (JIT) 編譯的旗標。

語法

HRESULT SetJITCompilerFlags (
    [in] DWORD dwFlags
);

參數

dwFlags [在] CorDebugJITCompilerFlags 列舉值的位元組合。

備註

如果值 dwFlags 無效, SetJITCompilerFlags 方法將會失敗。

SetJITCompilerFlags此方法只能從此模組的 ICorDebugManagedCallback::LoadModule 回呼內呼叫。 在傳遞回 ICorDebugManagedCallback::LoadModule 呼之後嘗試呼叫它將會失敗。

64 位元或 Win9x 平台不支援編輯並繼續。 因此,如果您在這兩個平臺上呼叫 SetJITCompilerFlags 方法,並在 中 dwFlags設定了 CORDEBUG_JIT_ENABLE_ENC 旗標, SetJITCompilerFlags 則方法和 Edit and Continue 特有的所有方法,例如 ICorDebugModule2::ApplyChanges,將會失敗。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 2.0 起提供