DetailsViewInsertedEventArgs(Int32, Exception) 构造函数
定义
初始化 DetailsViewInsertedEventArgs 类的新实例。Initializes a new instance of the DetailsViewInsertedEventArgs class.
public:
DetailsViewInsertedEventArgs(int affectedRows, Exception ^ e);
public DetailsViewInsertedEventArgs (int affectedRows, Exception e);
new System.Web.UI.WebControls.DetailsViewInsertedEventArgs : int * Exception -> System.Web.UI.WebControls.DetailsViewInsertedEventArgs
Public Sub New (affectedRows As Integer, e As Exception)
参数
- affectedRows
- Int32
受插入操作影响的行数。The number of rows affected by the insert operation.
一个 Exception 对象,表示执行插入操作时引发的异常。An Exception that represents the exception raised when the insert operation was performed. 如果未引发异常,则将 null 用于此参数。If no exception was raised, use null for this parameter.
注解
使用此构造函数初始化类的新实例 DetailsViewInsertedEventArgs 。Use this constructor to initialize a new instance of the DetailsViewInsertedEventArgs class.
下表显示了 DetailsViewInsertedEventArgs 实例的初始属性值。The following table shows the initial property values for an instance of DetailsViewInsertedEventArgs.
| PropertyProperty | 初始值Initial value |
|---|---|
| AffectedRows | affectedRows 参数的值。The value of the affectedRows parameter. |
| Exception | System.Exception参数中包含的对象 e 。The System.Exception object contained in the e parameter. |
| ExceptionHandled | 初始化为 false 。Initialized to false. |
| KeepInInsertMode | 初始化为 false 。Initialized to false. |
备注
此构造函数主要由控件开发人员在引发事件时使用。This constructor is used primarily by control developers when raising events.