ListViewUpdatedEventArgs(Int32, Exception) 构造函数

定义

初始化 ListViewUpdatedEventArgs 类的新实例。

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

参数

affectedRows
Int32

受更新操作影响的行数。

exception
Exception

执行更新操作时引发的异常(如果有)。 如果未引发任何异常,则使用 null

注解

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

备注

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

下表显示了 ListViewUpdatedEventArgs 类的某个实例的初始属性值。

属性 初始值
AffectedRows affectedRows 参数的值。
Exception System.Exception参数中包含的e对象。
ExceptionHandled false.
KeepInEditMode false.

适用于

另请参阅