ListViewUpdatedEventArgs(Int32, Exception) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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。 |