FormViewDeletedEventArgs(Int32, Exception) 构造函数

定义

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

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

参数

affectedRows
Int32

受删除操作影响的行数。The number of rows affected by the delete operation.

e
Exception

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

注解

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

下表显示 FormViewDeletedEventArgs 的实例的初始属性值。The following table shows the initial property values for an instance of FormViewDeletedEventArgs.

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.

备注

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

适用于

另请参阅