Control.OnLoad(EventArgs) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Genera l'evento Load.
protected:
virtual void OnLoad(EventArgs ^ e);
protected public:
virtual void OnLoad(EventArgs ^ e);
protected virtual void OnLoad(EventArgs e);
protected internal virtual void OnLoad(EventArgs e);
abstract member OnLoad : EventArgs -> unit
override this.OnLoad : EventArgs -> unit
Protected Overridable Sub OnLoad (e As EventArgs)
Protected Friend Overridable Sub OnLoad (e As EventArgs)
Parametri
Esempio
// Override the OnLoad method to set _text to
// a default value if it is null.
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (_text == null)
_text = "Here is some default text.";
}
Protected Overrides Sub OnLoad(ByVal e As EventArgs)
MyBase.OnLoad(e)
If _text Is Nothing Then
_text = "Here is some default text."
End If
End Sub
Commenti
ASP.NET chiama questo metodo per generare l'evento />