LinqDataSourceView.OnSelected(LinqDataSourceStatusEventArgs) Método
Definição
Gera o evento Selected após o controle LinqDataSource ter concluído uma operação de recuperação de dados.Raises the Selected event after the LinqDataSource control has completed a data retrieval operation.
protected:
virtual void OnSelected(System::Web::UI::WebControls::LinqDataSourceStatusEventArgs ^ e);
protected virtual void OnSelected (System.Web.UI.WebControls.LinqDataSourceStatusEventArgs e);
abstract member OnSelected : System.Web.UI.WebControls.LinqDataSourceStatusEventArgs -> unit
override this.OnSelected : System.Web.UI.WebControls.LinqDataSourceStatusEventArgs -> unit
Protected Overridable Sub OnSelected (e As LinqDataSourceStatusEventArgs)
Parâmetros
Os dados do evento.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 OnSelected método também permite que classes derivadas manipulem o evento sem anexar um delegado.The OnSelected method also enables 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
Quando você substituir o OnSelected(LinqDataSourceStatusEventArgs) método em uma classe derivada, certifique-se de chamar o OnSelected(LinqDataSourceStatusEventArgs) método para a classe base para que os delegados registrados recebam o evento.When you override the OnSelected(LinqDataSourceStatusEventArgs) method in a derived class, make sure that you call the OnSelected(LinqDataSourceStatusEventArgs) method for the base class so that registered delegates receive the event.