Freigeben über


IHostPolicyManager Interface

Provides methods that notify the host of the actions the common language runtime (CLR) performs in case of aborts, timeouts, or failures.

interface IHostPolicyManager: IUnknown {
    HRESULT OnDefaultAction (
        [in] EClrOperation  operation, 
        [in] EPolicyAction  action
    );
    HRESULT OnFailure(
        [in] EClrFailure    failure,
        [in] EPolicyAction  action
    );
    HRESULT OnTimeout (
        [in] EClrOperation  operation, 
        [in] EPolicyAction  action
    );
}

Methods

Method Description

IHostPolicyManager::OnDefaultAction Method

Notifies the host that the CLR is about to take the default action specified by a call to ICLRPolicyManager::SetDefaultAction Method in response to a thread abort or AppDomain unload.

IHostPolicyManager::OnFailure Method

Notifies the host that the CLR is about to take the action specified by a call to ICLRPolicyManager::SetActionOnFailure Method in response to a resource allocation or reclamation failure.

IHostPolicyManager::OnTimeout Method

Notifies the host that the CLR is about to take the action specified by a call to ICLRPolicyManager::SetActionOnTimeout Method in response to a timeout.

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
ICLRPolicyManager Interface

Other Resources

Hosting Interfaces