ListViewUpdatedEventArgs(Int32, Exception) 构造函数

定义

初始化 ListViewUpdatedEventArgs 类的新实例。Initializes a new instance of the ListViewUpdatedEventArgs class.

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

受更新操作影响的行数。The number of rows that were affected by the update operation.

exception
Exception

执行更新操作时引发的异常(如果有)。The exception that was raised when the update operation was performed, if any. 如果未引发任何异常,则使用 nullIf no exception is raised, use null.

注解

使用此构造函数初始化类的新实例 ListViewUpdatedEventArgsUse this constructor to initialize a new instance of the ListViewUpdatedEventArgs class.

备注

此构造函数主要由控件开发人员在引发事件时使用。This constructor is primarily used by control developers when they raise events.

下表显示了 ListViewUpdatedEventArgs 类的某个实例的初始属性值。The following table shows initial property values for an instance of the ListViewUpdatedEventArgs class.

属性Property 初始值Initial value
AffectedRows affectedRows 参数的值。The value of the affectedRows parameter.
Exception System.Exception参数中包含的对象 eThe System.Exception object that is contained in the e parameter.
ExceptionHandled false.false.
KeepInEditMode false.false.

适用于

另请参阅