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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk