ICLRPolicyManager 接口ICLRPolicyManager Interface

提供允许主机指定在发生故障和超时时要执行的策略操作的方法。Provides methods that allow the host to specify policy actions to be taken in the event of failures and timeouts.

方法Methods

方法Method 描述Description
SetActionOnFailure 方法SetActionOnFailure Method 指定发生指定的故障时公共语言运行时(CLR)应执行的策略操作。Specifies the policy action the common language runtime (CLR) should take when the specified failure occurs.
SetActionOnTimeout 方法SetActionOnTimeout Method 指定在指定操作超时时 CLR 应执行的策略操作。Specifies the policy action the CLR should take when the specified operation times out.
SetDefaultAction 方法SetDefaultAction Method 指定发生指定操作时 CLR 应执行的策略操作。Specifies the policy action the CLR should take when the specified operation occurs.
SetTimeout 方法SetTimeout Method 设置指定操作的超时值。Sets a timeout value for the specified operation.
SetTimeoutAndAction 方法SetTimeoutAndAction Method 设置指定操作的超时值,并指定该操作发生时 CLR 应执行的策略操作。Sets a timeout value for the specified operation, and specifies the policy action the CLR should take when the operation occurs.
SetUnhandledExceptionPolicy 方法SetUnhandledExceptionPolicy Method 指定发生未经处理的异常时 CLR 的行为。Specifies the behavior of the CLR when an unhandled exception occurs.

要求Requirements

平台: 请参阅系统要求Platforms: See System Requirements.

标头: Mscoree.dllHeader: MSCorEE.h

库: 作为资源包括在 Mscoree.dll 中Library: Included as a resource in MSCorEE.dll

.NET Framework 版本: 自 2.0 之后可用Available since 2.0.NET Framework Versions: 自 2.0 之后可用Available since 2.0

请参阅See also