Redigeeri

Jagamisviis:


LinqDataSourceDeleteEventArgs.ExceptionHandled Property

Definition

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

public:
 property bool ExceptionHandled { bool get(); void set(bool value); };
public bool ExceptionHandled { get; set; }
member this.ExceptionHandled : bool with get, set
Public Property ExceptionHandled As Boolean

Property Value

true if the exception was handled; otherwise, false.

Remarks

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.

Applies to