This topic has not yet been rated - Rate this topic

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
    );
}

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 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 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 in response to a timeout.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.