ProxyWebPartManager.Focus Método

Definição

Substitui o método base para impedir que o método seja chamado.Overrides the base method to prevent the method from being called.

public:
 override void Focus();
public override void Focus ();
override this.Focus : unit -> unit
Public Overrides Sub Focus ()

Exceções

Um chamador tenta chamar este método.A caller tries to call this method.

Comentários

O Focus método substitui o método base e gera uma exceção se qualquer chamador tentar chamar o método.The Focus method overrides the base method and throws an exception if any caller attempts to call the method. Isso ocorre porque o método herdado Control.Focus foi projetado para controles com uma interface do usuário (IU), mas o ProxyWebPartManager controle não tem nenhuma interface de usuários e, portanto, não precisa definir o foco.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.

Aplica-se a

Confira também