DetailsViewUpdatedEventArgs(Int32, Exception) 建構函式

定義

初始化 DetailsViewUpdatedEventArgs 類別的新執行個體。

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

更新作業所影響的資料列數目。

e
Exception

Exception,表示在執行更新作業時引發了例外狀況。 如果沒有引發例外狀況,請將這個參數設為 null

備註

使用此建構函式來初始化 類別的新實例 DetailsViewUpdatedEventArgs

下表所顯示的是 DetailsViewUpdatedEventArgs 類別之執行個體的初始屬性值。

屬性 初始值
AffectedRows affectedRows 參數的值。
Exception 包含在 System.Exception 參數中的 e 物件。
ExceptionHandled 初始化為 false
KeepInEditMode 初始化為 false

注意

這個建構函式主要是由控制項開發人員在引發事件時使用。

適用於

另請參閱