ערוך

שתף באמצעות


IXCLRDataExceptionNotification Interface

Caller provided interface which derives from IUnknown and includes callback methods for various CLR notifications which occur via system exceptions.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Methods

Method Description
OnCodeGenerated Callback made if the exception represents the generation of code for a particular method instance.
OnCodeDiscarded Callback made if the exception represents discarding of code for a particular method instance.
OnProcessExecution Callback made if the exception represents the process reaching a desired execution state.
OnTaskExecution Callback made if the exception represents a task reaching a desired execution state.
OnModuleLoaded Callback made if the exception represents a module being loaded.
OnModuleUnloaded Callback made if the exception represents a module being unloaded.
OnTypeLoaded Callback made if the exception represents a particular type instance being loaded.
OnTypeUnloaded Callback made if the exception represents a particular type instance being unloaded.

Remarks

This interface is implemented by users of the IXCLRDataProcess::TranslateExceptionRecordToNotification method. It is not exposed through any headers or library files. However, it's a COM interface that derives from IUnknown with GUID 2D95A079-42A1-4837-818F-0B97D7048E0E and can be implemented through the usual COM mechanisms. The list of methods above is the complete list of non IUnknown methods on this interface and are in vtable order.

Requirements

Platforms: See System Requirements. Header: None Library: None .NET Framework Versions: Available since 4.7

See also