officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetunhandledexceptioneventargs.md
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
public bool Handled { get; set; }
Public Property Handled As Boolean
| Type | Description |
|---|---|
| Boolean |
true to stop the exception from being propagated; otherwise, false.
|
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
if (e.Exception is OperationCanceledException)
e.Handled = true;
}
if (e.Exception is OperationCanceledException)
e.Handled = true;
}
winforms-spreadsheet-create-custom-progress-indicator/VB/SpreadsheetProgressSample/Form1.vb#L62
If TypeOf e.Exception Is OperationCanceledException Then
e.Handled = True
End If
If TypeOf e.Exception Is OperationCanceledException Then
e.Handled = True
End If
See Also
SpreadsheetUnhandledExceptionEventArgs Class