Control.OnUnload(EventArgs) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Genera el evento Unload.
protected:
virtual void OnUnload(EventArgs ^ e);
protected public:
virtual void OnUnload(EventArgs ^ e);
protected virtual void OnUnload(EventArgs e);
protected internal virtual void OnUnload(EventArgs e);
abstract member OnUnload : EventArgs -> unit
override this.OnUnload : EventArgs -> unit
Protected Overridable Sub OnUnload (e As EventArgs)
Protected Friend Overridable Sub OnUnload (e As EventArgs)
Parámetros
Ejemplos
// Override the OnUnLoad method to set _text to
// a default value if it is null.
protected override void OnUnload(EventArgs e)
{
base.OnUnload(e);
if (_text == null)
_text = "Here is some default text.";
}
' Override the OnUnLoad method to set _text to
' a default value if it is null.
Protected Overrides Sub OnUnload(ByVal e As EventArgs)
MyBase.OnUnload(e)
If _text Is Nothing Then
_text = "Here is some default text."
End If
End Sub
Comentarios
ASP.NET llama a este método para generar el evento />