UpdatePanel.CreateControlCollection Método

Definição

Retorna a coleção de todos os controles contidos no controle UpdatePanel.Returns the collection of all controls contained in the UpdatePanel control.

protected:
 override System::Web::UI::ControlCollection ^ CreateControlCollection();
protected override sealed System.Web.UI.ControlCollection CreateControlCollection ();
override this.CreateControlCollection : unit -> System.Web.UI.ControlCollection
Protected Overrides NotOverridable Function CreateControlCollection () As ControlCollection

Retornos

ControlCollection

Um ControlCollection composto de todos os controles que definem o conteúdo do controle UpdatePanel.A ControlCollection object that consists of all controls that define the content of the UpdatePanel control.

Comentários

O CreateControlCollection método é usado pelos desenvolvedores de controle.The CreateControlCollection method is used by control developers.

Como esse método é protegido e lacrado, ele fica visível para as classes herdadas da UpdatePanel classe, mas não pode ser substituído.Because this method is protected and sealed, it is visible to classes that inherit from the UpdatePanel class, but it cannot be overridden. Esse método substitui a implementação de base para retornar um ControlCollection objeto especializado que gera um InvalidOperationException quando Add o AddAt método,, Clear , Remove ou RemoveAt da ControlCollection classe é invocado.This method overrides the base implementation to return a specialized ControlCollection object that throws an InvalidOperationException when the Add, AddAt, Clear, Remove, or RemoveAt method of the ControlCollection class is invoked. Para alterar o conteúdo do controle UpdatePanel, modifique os controles filho da propriedade ContentTemplateContainer.To change the content of the UpdatePanel control, modify the child controls of the ContentTemplateContainer property.

Aplica-se a

Confira também