DetailsView.OnItemUpdated(DetailsViewUpdatedEventArgs) 方法

定义

引发 ItemUpdated 事件。Raises the ItemUpdated event.

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

参数

e
DetailsViewUpdatedEventArgs

包含事件数据的 DetailsViewUpdatedEventArgsA DetailsViewUpdatedEventArgs that contains the event data.

注解

OnItemUpdated方法ItemUpdated由控件调用以引发事件。 DetailsViewThe OnItemUpdated method is called by the DetailsView control to raise the ItemUpdated event. 在扩展DetailsView类时, 控件开发人员通常会使用此方法。It is generally used by control developers when extending the DetailsView class.

OnItemUpdated 方法还允许派生类对事件进行处理而不必附加委托。The OnItemUpdated 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.

继承者说明

在派生类中重写 OnItemUpdated(DetailsViewUpdatedEventArgs) 时,一定要调用基类的 OnItemUpdated(DetailsViewUpdatedEventArgs) 方法,以便已注册的委托对事件进行接收。When overriding OnItemUpdated(DetailsViewUpdatedEventArgs) in a derived class, be sure to call the base class's OnItemUpdated(DetailsViewUpdatedEventArgs) method so that registered delegates receive the event.

适用于

另请参阅