語言

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。

Note

這個建構器主要供控制開發者在事件提出時使用。

適用於

另請參閱