LinqDataSourceDeleteEventArgs.Exception Egenskap

Definition

Hämtar undantaget som utlöstes när data verifierades före borttagningen.

public:
 property System::Web::UI::WebControls::LinqDataSourceValidationException ^ Exception { System::Web::UI::WebControls::LinqDataSourceValidationException ^ get(); };
public System.Web.UI.WebControls.LinqDataSourceValidationException Exception { get; }
member this.Exception : System.Web.UI.WebControls.LinqDataSourceValidationException
Public ReadOnly Property Exception As LinqDataSourceValidationException

Egenskapsvärde

Undantaget, om ett fel uppstod; annars . null

Kommentarer

Om ett verifieringsfel utlöses innan borttagningen utförs lagras undantaget i Exception egenskapen. I en händelsehanterare för Deleting händelsen kan du hämta undantaget via egenskapen Exception .

Gäller för