Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICLROnEventManager Interface

Provides methods that allow the host to register and unregister callbacks for common language runtime (CLR) events.


interface ICLROnEventManager : IUnknown {
    HRESULT RegisterActionOnEvent (
        [in] EClrEvent event,
        [in] IActionOnCLREvent *pAction
    );
    HRESULT UnregisterActionOnEvent (
        [in] EClrEvent event,
        [in] IActionOnCLREvent *pAction
    );
}

Method Description

ICLROnEventManager::RegisterActionOnEvent Method

Registers a callback pointer for the specified event.

ICLROnEventManager::UnregisterActionOnEvent Method

Unregisters a previously registered callback pointer for the specified event.

To register and unregister event callbacks, the host gets a reference to ICLROnEventManager by calling the ICLRControl::GetCLRManager Method method.

NoteNote

The events described by EClrEvent Enumeration can be fired more than once and from different threads to signal an unload or the disabling of the CLR.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft