Share via


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

ICLRPolicyManager::SetActionOnFailure Method

Specifies the policy action the common language runtime (CLR) should take when the specified failure occurs.

ICLRPolicyManager::SetActionOnTimeout Method

Specifies the policy action the CLR should take when the specified operation times out.

ICLRPolicyManager::SetDefaultAction Method

Specifies the policy action the CLR should take when the specified operation occurs.

ICLRPolicyManager::SetTimeout Method

Sets a timeout value for the specified operation.

ICLRPolicyManager::SetTimeoutAndAction Method

Sets a timeout value for the specified operation, and specifies the policy action the CLR should take when the operation occurs.

ICLRPolicyManager::SetUnhandledExceptionPolicy Method

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

See Also

Reference

EClrFailure Enumeration
EClrOperation Enumeration
EPolicyAction Enumeration
ICLRControl Interface