BaseValidator.OnInit(EventArgs) Metoda

Definicja

Init Zgłasza zdarzenie.

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

Parametry

e
EventArgs

Element EventArgs zawierający dane zdarzenia.

Uwagi

Gdy ta metoda wywołuje metodę podstawowego formantu OnInit , ustawia ForeColor właściwość na Red , jeśli spełnione są następujące warunki:

Ta metoda rejestruje również kontrolkę walidacji na stronie.

Uwagi dotyczące dziedziczenia

Podczas zastępowania OnInit(EventArgs) w klasie pochodnej należy wywołać metodę klasy OnInit(EventArgs) bazowej, aby zarejestrowani delegaci odbierali zdarzenie.

Dotyczy

Zobacz też