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

注意

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

適用於

另請參閱