ControlAdapter.OnPreRender(EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overrides the OnPreRender(EventArgs) method for the associated control.
protected public:
virtual void OnPreRender(EventArgs ^ e);
protected internal virtual void OnPreRender (EventArgs e);
abstract member OnPreRender : EventArgs -> unit
override this.OnPreRender : EventArgs -> unit
Protected Friend Overridable Sub OnPreRender (e As EventArgs)
Parameters
Remarks
If there is an adapter attached to a Control object and the OnPreRender method is overridden, the override method is called instead of the Control.OnPreRender method.
Override the OnPreRender method to perform target-specific processing in the PreRender
stage of the control lifecycle. Typically, these are functions that immediately precede rendering of the control output.
Notes to Inheritors
When you inherit from the ControlAdapter class and the adapter overrides the OnPreRender(EventArgs) method, the adapter must call the corresponding base class method, which in turn calls the OnPreRender(EventArgs) method. If the OnPreRender(EventArgs) method is not called, the PreRender event will not be raised.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για