ListViewDeletedEventArgs(Int32, Exception) 建構函式

定義

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

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

參數

affectedRows
Int32

刪除作業所影響的資料列數目。

exception
Exception

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

備註

您可以使用這個建構函式來初始化 類別的新實例 ListViewDeletedEventArgs

注意

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

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

屬性 初始值
AffectedRows affectedRows 參數的值。
Exception e 參數的值。
ExceptionHandled false.

適用於

另請參閱