DetailsViewUpdatedEventArgs(Int32, Exception) 构造函数

定义

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

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

参数

affectedRows
Int32

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

e
Exception

一个 Exception,表示在执行更新操作时引发的异常。An Exception that represents the exception raised when the update operation was performed. 如果未引发异常,则将 null 用于此参数。If no exception is raised, use null for this parameter.

注解

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

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

PropertyProperty 初始值Initial value
AffectedRows affectedRows 参数的值。The value of the affectedRows parameter.
Exception 参数中包含的System.Exception对象 eThe System.Exception object contained in the e parameter.
ExceptionHandled 初始化为falseInitialized to false.
KeepInEditMode 初始化为falseInitialized to false.

备注

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

适用于

另请参阅