Sets a value that determines how an application loads native images while running under a managed debugger.
HRESULT EnableNGENPolicy( [in] CorDebugNGENPolicy ePolicy );
[in] A CorDebugNGenPolicy constant that determines how an application loads native images while running under a managed debugger.
If the policy is set successfully, the method returns
ePolicy is outside the range of the enumerated values defined by CorDebugNGenPolicy, the method returns
E_INVALIDARG and the method call has no effect. If the policy of the Native Image Generator (Ngen.exe) cannot be updated, the method returns
ICorDebugProcess5::EnableNGenPolicy method can be called at any time during the lifetime of the process. The policy is in effect for any modules that are loaded after the policy is set.
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: Available since 4.5
Submit and view feedback for