FormViewUpdatedEventArgs(Int32, Exception) Konstruktor

Definition

Initierar en ny instans av FormViewUpdatedEventArgs klassen.

public:
 FormViewUpdatedEventArgs(int affectedRows, Exception ^ e);
public FormViewUpdatedEventArgs(int affectedRows, Exception e);
new System.Web.UI.WebControls.FormViewUpdatedEventArgs : int * Exception -> System.Web.UI.WebControls.FormViewUpdatedEventArgs
Public Sub New (affectedRows As Integer, e As Exception)

Parametrar

affectedRows
Int32

Antalet rader som påverkas av uppdateringsåtgärden.

e
Exception

Ett Exception som representerar undantaget som uppstod när uppdateringsåtgärden utfördes. Om inget undantag utlöses använder du null för den här parametern.

Kommentarer

Använd den här konstruktorn för att initiera en ny instans av FormViewUpdatedEventArgs klassen.

I följande tabell visas inledande egenskapsvärden för en instans av FormViewUpdatedEventArgs klassen.

Property Initialt värde
AffectedRows Värdet för parametern affectedRows .
Exception Objektet System.Exception som finns i parametern e .
ExceptionHandled Initierad till false.
KeepInEditMode Initierad till false.

Note

Den här konstruktorn används främst av kontrollutvecklare när händelser skapas.

Gäller för

Se även