ObjectDataSourceView.OnUpdated(ObjectDataSourceStatusEventArgs) Método

Definição

Gerará o evento Updated depois que o objeto ObjectDataSourceView concluir uma operação de atualização.Raises the Updated event after the ObjectDataSourceView object has completed an update operation.

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

Parâmetros

e
ObjectDataSourceStatusEventArgs

Um ObjectDataSourceStatusEventArgs que contém os dados do evento.An ObjectDataSourceStatusEventArgs that contains the event data.

Comentários

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 sobre como lidar com eventos, consulte manipulando e gerando eventos.For more information about how to handle events, see Handling and Raising Events.

O OnUpdated método também permite que classes derivadas manipulem o evento sem anexar um delegado.The OnUpdated 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 o OnUpdated(ObjectDataSourceStatusEventArgs) método em uma classe derivada, certifique-se de chamar o OnUpdated(ObjectDataSourceStatusEventArgs) método para a classe base para que os delegados registrados recebam o evento.When overriding the OnUpdated(ObjectDataSourceStatusEventArgs) method in a derived class, be sure to call the OnUpdated(ObjectDataSourceStatusEventArgs) method for the base class so that registered delegates receive the event.

Aplica-se a

Confira também