ListViewInsertedEventArgs(Int32, Exception) 建構函式

定義

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

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

參數

affectedRows
Int32

插入作業所影響的資料列數目。

exception
Exception

在執行插入作業時引發的例外狀況 (如果有的話)。 如果沒有引發例外狀況,請將這個參數設為 null

備註

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

注意

引發事件時,控制開發人員主要會使用此建構函式。

下表顯示 ListViewInsertedEventArgs 類別執行個體的初始屬性值。

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

適用於

另請參閱