The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

WinWindow.CustomHandleExceptionOnClosing Event

Occurs when an exception is triggered while the WinWindow is being closed.

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v19.2.dll

Declaration

public event EventHandler<HandleExceptionEventArgs> CustomHandleExceptionOnClosing
Public Event CustomHandleExceptionOnClosing As EventHandler(Of HandleExceptionEventArgs)
public event EventHandler<HandleExceptionEventArgs> CustomHandleExceptionOnClosing
Public Event CustomHandleExceptionOnClosing As EventHandler(Of HandleExceptionEventArgs)

Event Data

The CustomHandleExceptionOnClosing event handler receives an argument of the HandleExceptionEventArgs type. The following properties provide information specific to this event.

Property Description
Exception Specifies an exception triggered while a WinWindow is being closed.
Handled Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.
(Inherited from HandledEventArgs)

Remarks

Handle this event to manually process an exceptional situation occurring while the Window is being closed. The CustomHandleExceptionEventArgs.Exception property specifies the original exception. Perform the actions required to correct it and set the Handled argument passed into the event handler to true, to suppress the original exception.

See Also