EClrEvent Enumeration

Describes the common language runtime (CLR) events for which the host can register callbacks.

typedef enum {
    Event_ClrDisabled,
    Event_DomainUnload,
    Event_MDAFired,
    Event_StackOverflow
} EClrEvent;

Members

Member

Description

Event_ClrDisabled

Specifies a fatal CLR error.

Event_DomainUnload

Specifies the unloading of a particular AppDomain.

Event_MDAFired

Specifies that a Managed Debugging Assistant (MDA) message has been generated.

Event_StackOverflow

Specifies that a stack overflow error has occurred.

Remarks

The host can register callbacks for any of the event types described by EClrEvent by calling methods of the ICLROnEventManager interface. The host gets a pointer to this interface by calling the ICLRControl::GetCLRManager method.

The Event_CLRDisabled and Event_DomainUnload events can be raised more than once and from different threads to signal an unload or the disabling of the CLR.

The Event_MDAFired event raises the creation of an MDAInfo instance that contains the details of the MDA message. For more information about MDAs, see Diagnosing Errors with Managed Debugging Assistants.

Requirements

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorEE.dll

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

See Also

Reference

IActionOnCLREvent Interface

ICLRControl Interface

Other Resources

Hosting Enumerations