语言

ListViewInsertedEventArgs(Int32, Exception) 构造函数

定义

初始化 ListViewInsertedEventArgs 类的新实例。

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

参数

affectedRows
Int32

受插入操作影响的行数。

exception
Exception

执行插入操作时引发的异常(如果有)。 如果未引发异常,则 null 用于此参数。

注解

使用此构造函数初始化类的新实例 ListViewInsertedEventArgs 。

注释

引发事件时,此构造函数主要用于控件开发人员。

下表显示了类实例 ListViewInsertedEventArgs 的初始属性值。

财产 初始值
AffectedRows 参数的值 affectedRows 。
Exception System.Exception参数中包含的e对象。
ExceptionHandled 初始化为 false.
KeepInInsertMode 初始化为 false.

适用于

另请参阅