Share via


ICorDebug::SetManagedHandler Method

Specifies the event handler object for managed events.

HRESULT SetManagedHandler (
    [in] ICorDebugManagedCallback     *pCallback
);

Parameters

Remarks

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.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

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

See Also

Reference

ICorDebug Interface