DetailsViewDeletedEventArgs(Int32, Exception) 建構函式

定義

初始化 DetailsViewDeletedEventArgs 類別的新執行個體。Initializes a new instance of the DetailsViewDeletedEventArgs class.

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

參數

affectedRows
Int32

刪除作業所影響的資料列數目。The number of rows affected by the delete operation.

e
Exception

Exception,表示在執行刪除作業時引發了例外狀況。An Exception that represents the exception raised when the delete operation was performed. 如果沒有引發例外狀況,請將這個參數設為 nullIf no exception is raised, use null for this parameter.

備註

您可以使用這個函式來初始化類別的新實例 DetailsViewDeletedEventArgsUse this constructor to initialize a new instance of the DetailsViewDeletedEventArgs class.

下表顯示 DetailsViewDeletedEventArgs 執行個體的初始屬性值。The following table shows the initial property values for an instance of DetailsViewDeletedEventArgs.

屬性Property 初始值Initial value
AffectedRows affectedRows 參數的值。The value of the affectedRows parameter.
Exception System.Exception包含在參數中的 eThe System.Exception contained in the e parameter.
ExceptionHandled 初始化為 falseInitialized to false.

注意

在引發事件時,主要由控制項開發人員使用。This constructor is used primarily by control developers when raising events.

適用於

另請參閱