Share via


ListViewUpdatedEventArgs(Int32, Exception) 建構函式

定義

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

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

參數

affectedRows
Int32

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

exception
Exception

在執行更新作業時引發的例外狀況 (如果有的話)。 如果沒有引發任何例外狀況,請使用 null

備註

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

注意

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

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

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

適用於

另請參閱