Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

LinqDataSourceDeleteEventArgs::ExceptionHandled Property

 

Gets or sets a value that indicates whether the exception was handled and that it should not be thrown again.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property bool ExceptionHandled {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the exception was handled; otherwise, false.

You can create an event handler for the Deleting event to examine validation exceptions that were thrown before the delete operation. If you handle the exception and do not want it to be thrown again, set the ExceptionHandled property to true. If you do not set the ExceptionHandled property to true, the exception will be propagated to the next event handler in the call stack.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft