ProxyWebPartManager.Focus Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Overrides the base method to prevent the method from being called.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public override void Focus()

Exception Condition
NotSupportedException

A caller tries to call this method.

The Focus method overrides the base method and throws an exception if any caller attempts to call the method. This is because the inherited Control.Focus method is designed for controls with a user interface (UI), but the ProxyWebPartManager control has no UI and therefore has no need to set the focus.

.NET Framework
Available since 2.0
Return to top
Show: