Метод ICorDebugProcess5::EnableNGENPolicyICorDebugProcess5::EnableNGENPolicy Method
Задает значение, определяющее, как приложение загружает образы в машинном кодах при выполнении в управляемом отладчике.Sets a value that determines how an application loads native images while running under a managed debugger.
СинтаксисSyntax
HRESULT EnableNGENPolicy(
[in] CorDebugNGENPolicy ePolicy
);
ПараметрыParameters
ePolicy
окне Константа кордебугнженполици , определяющая, как приложение загружает образы в машинном кодах при работе в управляемом отладчике.[in] A CorDebugNGenPolicy constant that determines how an application loads native images while running under a managed debugger.
RemarksRemarks
Если политика успешно установлена, метод возвращает значение S_OK
.If the policy is set successfully, the method returns S_OK
. Если ePolicy
находится вне диапазона перечисляемых значений, определенных параметром кордебугнженполици, метод возвращает значение, E_INVALIDARG
и вызов метода не оказывает никакого влияния.If ePolicy
is outside the range of the enumerated values defined by CorDebugNGenPolicy, the method returns E_INVALIDARG
and the method call has no effect. Если не удается обновить политику генератора образов в машинном кодах (Ngen.exe), метод возвращает E_FAIL
.If the policy of the Native Image Generator (Ngen.exe) cannot be updated, the method returns E_FAIL
.
ICorDebugProcess5::EnableNGenPolicy
Метод может быть вызван в любой момент времени существования процесса.The 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.
ТребованияRequirements
Платформы: см. раздел Требования к системе.Platforms: See System Requirements.
Заголовок: CorDebug.idl, CorDebug.hHeader: CorDebug.idl, CorDebug.h
Библиотека: CorGuids.libLibrary: CorGuids.lib
Платформа .NET Framework версии:Доступно с версии 4.5Available since 4.5.NET Framework Versions: Доступно с версии 4.5Available since 4.5