LinqDataSourceView.OnSelecting(LinqDataSourceSelectEventArgs) Método

Definição

Gera o evento Selecting após o controle LinqDataSource executar uma operação de recuperação de dados.Raises the Selecting event before the LinqDataSource control performs a data-retrieval operation.

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

Parâmetros

e
LinqDataSourceSelectEventArgs

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

Aplica-se a