Exception Method

ICorDebugManagedCallback::Exception Method


Notifies the debugger that an exception has been thrown from managed code.

HRESULT Exception (
    [in] ICorDebugAppDomain *pAppDomain,
    [in] ICorDebugThread    *pThread,
    [in] BOOL                unhandled


[in] A pointer to an ICorDebugAppDomain object that represents the application domain in which the exception was thrown.


[in] A pointer to an ICorDebugThread object that represents the thread in which the exception was thrown.


[in] If this value is false, the exception has not yet been processed by the application; otherwise, the exception is unhandled and will terminate the process.

The specific exception can be retrieved from the thread object.


Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4.6, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

© 2015 Microsoft