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.
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