語言

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 。

Note

此建構器主要供控制開發者在召開事件時使用。

下表顯示該 ListViewInsertedEventArgs 類別實例的初始屬性值。

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

適用於

另請參閱