SqlDataSourceView.OnDeleted(SqlDataSourceStatusEventArgs) 方法

定义

Deleted 控件完成删除操作后引发 SqlDataSource 事件。Raises the Deleted event after the SqlDataSource control has completed a delete operation.

protected:
 virtual void OnDeleted(System::Web::UI::WebControls::SqlDataSourceStatusEventArgs ^ e);
protected virtual void OnDeleted (System.Web.UI.WebControls.SqlDataSourceStatusEventArgs e);
abstract member OnDeleted : System.Web.UI.WebControls.SqlDataSourceStatusEventArgs -> unit
override this.OnDeleted : System.Web.UI.WebControls.SqlDataSourceStatusEventArgs -> unit
Protected Overridable Sub OnDeleted (e As SqlDataSourceStatusEventArgs)

参数

e
SqlDataSourceStatusEventArgs

包含事件数据的 SqlDataSourceStatusEventArgsA SqlDataSourceStatusEventArgs that contains the event data.

注解

引发事件时,将通过委托调用事件处理程序。Raising an event invokes the event handler through a delegate. 有关如何处理事件的详细信息,请参阅 处理和引发事件For more information about how to handle events, see Handling and Raising Events.

OnDeleted 方法还允许派生类对事件进行处理而不必附加委托。The OnDeleted method also allows derived classes to handle the event without attaching a delegate. 这是在派生类中处理事件的首选技术。This is the preferred technique for handling the event in a derived class.

继承者说明

当在 OnDeleted(SqlDataSourceStatusEventArgs) 派生类中重写方法时,请确保调用 OnDeleted(SqlDataSourceStatusEventArgs) 基类的方法,以便注册的委托接收事件。When overriding the OnDeleted(SqlDataSourceStatusEventArgs) method in a derived class, be sure to call the OnDeleted(SqlDataSourceStatusEventArgs) method for the base class so that registered delegates receive the event.

适用于