ControlAdapter.OnLoad(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 OnLoad(EventArgs) method for the associated control.
protected public:
virtual void OnLoad(EventArgs ^ e);
protected internal virtual void OnLoad (EventArgs e);
abstract member OnLoad : EventArgs -> unit
override this.OnLoad : EventArgs -> unit
Protected Friend Overridable Sub OnLoad (e As EventArgs)
Parameters
Remarks
If there is an adapter attached to a Control object and the OnLoad method is overridden, the override method is called instead of the Control.OnLoad method.
Override the OnLoad method to perform target-specific processing in the Load
stage of the control lifecycle. Typically, these are functions that should be performed for each client request.
Notes to Inheritors
When you inherit from the ControlAdapter class and the adapter overrides the OnLoad(EventArgs) method, the adapter must call the corresponding base class method, which in turn calls the OnLoad(EventArgs) method. If OnLoad(EventArgs) is not called, the Load event will not be raised.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om