WebPartManager.Focus 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.
Overridden to prevent focus from ever being set on the WebPartManager control, because it has no user interface (UI).
public:
override void Focus();
public override void Focus ();
override this.Focus : unit -> unit
Public Overrides Sub Focus ()
Exceptions
A caller tries to call the Focus() method, which is not supported in a control that has no UI.
Remarks
The Focus method overrides the base Control.Focus method, and throws an exception if a caller calls the method. Because the WebPartManager control has no UI and is never visible to users, it can never allow focus to be set on itself.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor