Back to Devexpress

SpreadsheetUnhandledExceptionEventArgs.Handled Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetunhandledexceptioneventargs.md

latest3.4 KB
Original Source

SpreadsheetUnhandledExceptionEventArgs.Handled Property

Gets or sets whether the exception should be propagated upwards.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
Boolean

true to stop the exception from being propagated; otherwise, false.

|

Remarks

Set the Handled to true , if the method for handling an exception is provided and further propagation is unnecessary.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Handled property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-create-custom-progress-indicator/CS/SpreadsheetProgressSample/Form1.cs#L59

csharp
if (e.Exception is OperationCanceledException)
        e.Handled = true;
}

wpf-spreadsheet-create-custom-progress-indicator/CS/WpfSpreadsheetProgressSample/MainWindow.xaml.cs#L60

csharp
if (e.Exception is OperationCanceledException)
        e.Handled = true;
}

winforms-spreadsheet-create-custom-progress-indicator/VB/SpreadsheetProgressSample/Form1.vb#L62

vb
If TypeOf e.Exception Is OperationCanceledException Then
    e.Handled = True
End If

wpf-spreadsheet-create-custom-progress-indicator/VB/WpfSpreadsheetProgressSample/MainWindow.xaml.vb#L63

vb
If TypeOf e.Exception Is OperationCanceledException Then
    e.Handled = True
End If

See Also

SpreadsheetUnhandledExceptionEventArgs Class

SpreadsheetUnhandledExceptionEventArgs Members

DevExpress.XtraSpreadsheet Namespace