GridViewUpdatedEventArgs(Int32, Exception) 构造函数

定义

初始化 GridViewUpdatedEventArgs 类的新实例。

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

参数

affectedRows
Int32

受更新操作影响的行数。

e
Exception

执行更新操作时引发的异常。 如果未引发异常,则 null 用于此参数。

注解

下表显示了类实例 GridViewUpdatedEventArgs 的初始属性值。

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

注释

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

适用于

另请参阅