FormView.OnItemUpdated(FormViewUpdatedEventArgs) Método
Definição
Aciona o evento ItemUpdated.Raises the ItemUpdated event.
protected:
virtual void OnItemUpdated(System::Web::UI::WebControls::FormViewUpdatedEventArgs ^ e);
protected virtual void OnItemUpdated (System.Web.UI.WebControls.FormViewUpdatedEventArgs e);
abstract member OnItemUpdated : System.Web.UI.WebControls.FormViewUpdatedEventArgs -> unit
override this.OnItemUpdated : System.Web.UI.WebControls.FormViewUpdatedEventArgs -> unit
Protected Overridable Sub OnItemUpdated (e As FormViewUpdatedEventArgs)
Parâmetros
Um FormViewUpdatedEventArgs que contém os dados do evento.A FormViewUpdatedEventArgs that contains the event data.
Comentários
O OnItemUpdated método é chamado pelo FormView controle para gerar o ItemUpdated evento.The OnItemUpdated method is called by the FormView control to raise the ItemUpdated event. Geralmente, ele é usado por desenvolvedores de controle ao estender a FormView classe.It is generally used by control developers when extending the FormView class.
A geração de um evento invoca o manipulador de eventos por meio de um delegado.Raising an event invokes the event handler through a delegate. Para obter mais informações, consulte manipulando e gerando eventos.For more information, see Handling and Raising Events.
O OnItemUpdated método também permite que classes derivadas manipulem o evento sem anexar um delegado.The OnItemUpdated method also allows derived classes to handle the event without attaching a delegate. Essa é a técnica preferida para manipular o evento em uma classe derivada.This is the preferred technique for handling the event in a derived class.
Notas aos Herdeiros
Ao substituir OnItemUpdated(FormViewUpdatedEventArgs) em uma classe derivada, certifique-se de chamar o método da classe base OnItemUpdated(FormViewUpdatedEventArgs) para que os delegados registrados recebam o evento.When overriding OnItemUpdated(FormViewUpdatedEventArgs) in a derived class, be sure to call the base class's OnItemUpdated(FormViewUpdatedEventArgs) method so that registered delegates receive the event.