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