ICLRPolicyManager Interface
Provides methods that allow the host to specify policy actions to be taken in the event of failures and timeouts.
interface ICLRPolicyManager: IUnknown {
HRESULT SetActionOnFailure (
[in] EClrFailure failure,
[in] EPolicyAction action
);
HRESULT SetActionOnTimeout (
[in] EClrOperation operation,
[in] EPolicyAction action
);
HRESULT SetDefaultAction (
[in] EClrOperation operation,
[in] EPolicyAction action);
HRESULT SetTimeout (
[in] EClrOperation operation,
[in] DWORD dwMilliseconds
);
HRESULT SetTimeoutAndAction (
[in] EClrOperation operation,
[in] DWORD dwMilliseconds,
[in] EPolicyAction action
);
HRESULT SetUnhandledExceptionPolicy (
[in] EClrUnhandledException policy
);
}
Methods
Method |
Description |
---|---|
Specifies the policy action the common language runtime (CLR) should take when the specified failure occurs. |
|
Specifies the policy action the CLR should take when the specified operation times out. |
|
Specifies the policy action the CLR should take when the specified operation occurs. |
|
Sets a timeout value for the specified operation. |
|
Sets a timeout value for the specified operation, and specifies the policy action the CLR should take when the operation occurs. |
|
Specifies the behavior of the CLR when an unhandled exception occurs. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: MSCorEE.idl
Library: Included as a resource in MSCorEE.dll
.NET Framework Version: 2.0