Share via


ICorDebugProcess3::SetEnableCustomNotification Method

Enables and disables custom debugger notifications of the specified type.

HRESULT SetEnableCustomNotification(ICorDebugClass * pClass,
                                    BOOL fEnable);

Parameters

  • pClass
    [in] The type that specifies custom debugger notifications.

  • fEnable
    [in] true to enable custom debugger notifications; false to disable notifications. The default value is false.

Remarks

When fEnable is set to true, calls to the Debugger.NotifyOfCrossThreadDependency method trigger an ICorDebugManagedCallback3::CustomNotification callback. Notifications are disabled by default; therefore, the debugger must specify any notification types it knows about and wants to handle. Because the ICorDebugClass class is scoped by application ___domain, the debugger must call SetEnableCustomNotification for every application ___domain in the process if it wants to receive the notification across the entire process.

Starting with the .NET Framework version 4, the only supported notification is a cross-thread dependency notification.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4

See Also

Reference

ICorDebugProcess3 Interface

ICorDebugProcess2 Interface

ICorDebugProcess Interface

Other Resources

Debugging Interfaces

Debugging (Unmanaged API Reference)