DetailsViewUpdatedEventArgs(Int32, Exception) Constructor

Definition

Initializes a new instance of the DetailsViewUpdatedEventArgs class.

C#
public DetailsViewUpdatedEventArgs(int affectedRows, Exception e);

Parameters

affectedRows
Int32

The number of rows affected by the update operation.

e
Exception

An Exception that represents the exception raised when the update operation was performed. If no exception is raised, use null for this parameter.

Remarks

Use this constructor to initialize a new instance of the DetailsViewUpdatedEventArgs class.

The following table shows initial property values for an instance of the DetailsViewUpdatedEventArgs class.

Property Initial value
AffectedRows The value of the affectedRows parameter.
Exception The System.Exception object contained in the e parameter.
ExceptionHandled Initialized to false.
KeepInEditMode Initialized to false.

Poznámka

This constructor is used primarily by control developers when raising events.

Applies to

Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also