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: See .NET Framework System Requirements.

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

EClrFailure Enumeration

EClrOperation Enumeration

EPolicyAction Enumeration

ICLRControl Interface