ListViewInsertedEventArgs(Int32, Exception) Constructor

Definition

Initializes a new instance of the ListViewInsertedEventArgs class.

C#
public ListViewInsertedEventArgs(int affectedRows, Exception exception);

Parameters

affectedRows
Int32

The number of rows affected by the insert operation.

exception
Exception

The exception that is raised when the insert operation was performed, if any. If no exception was raised, use null for this parameter.

Remarks

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

Napomena

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

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

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

Applies to

Proizvod Verzije
.NET Framework 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