HtmlSelect.OnInit(EventArgs) Método

Definição

Aciona o evento Init do controle HtmlSelect.Raises the Init event for the HtmlSelect control.

protected public:
 override void OnInit(EventArgs ^ e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Friend Overrides Sub OnInit (e As EventArgs)

Parâmetros

e
EventArgs

Um EventArgs que contém os dados do evento.A EventArgs that contains the event data.

Comentários

O OnInit método notifica o HtmlSelect controle para executar as etapas de inicialização necessárias para criar e configurar uma instância.The OnInit method notifies the HtmlSelect control to perform any initialization steps that are required to create and set up an instance. Se a IsViewStateEnabled propriedade for false e a IsPostBack propriedade for true , a RequiresDataBinding propriedade será definida como true .If the IsViewStateEnabled property is false and the IsPostBack property is true, then the RequiresDataBinding property is set to true.

Notas aos Herdeiros

Ao substituir o OnInit(EventArgs) método em uma classe derivada, certifique-se de chamar o método da classe base OnInit(EventArgs) para que os delegados registrados recebam o evento.When overriding the OnInit(EventArgs) method in a derived class, be sure to call the base class's OnInit(EventArgs) method so that the registered delegates received the event.

Aplica-se a

Confira também