FormViewUpdatedEventArgs(Int32, Exception) 构造函数

定义

初始化 FormViewUpdatedEventArgs 类的新实例。

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

参数

affectedRows
Int32

受更新操作影响的行的数目。

e
Exception

一个 Exception,表示在执行更新操作时引发的异常。 如果未引发异常,则将 null 用于此参数。

注解

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

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

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

注意

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

适用于

另请参阅