ICorDebug::SetManagedHandler Method

Specifies the event handler object for managed events.

HRESULT SetManagedHandler (
    [in] ICorDebugManagedCallback     *pCallback



[in] A pointer to an ICorDebugManagedCallback Interface object, which is the event handler object.

SetManagedHandler must be called at creation time.

If the ICorDebugManagedCallback implementation does not contain sufficient interfaces to handle debugging events for the application that is being debugged, SetManagedHandler returns an HRESULT of E_NOINTERFACE.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0