class AppDomain { //. . . public void AddOnUnhandledException( UnhandledExceptionEventHandler handler) public void RemoveOnUnhandledException( UnhandledExceptionEventHandler handler) //. . . }
A domain can be notified when an unhandled exception happens
Unsubscribe from the unhandled exception event
public class UnhandledExceptionEvent : EventArgs
{
public UnhandledExceptionEvent(Object exception, bool isTerminating);
public Object ExceptionObject { get; }
public bool IsTerminating { get; }
}
public delegate void UnhandledExceptionEventHandler(Object sender, UnhandledExceptionEvent e);