共用方式為


ICorDebugModule2::SetJITCompilerFlags 方法

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

語法

HRESULT SetJITCompilerFlags (  
    [in] DWORD dwFlags  
);  

參數

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

備註

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

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

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

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 2.0 起提供