WebPartZoneBase.GetInitialWebParts Método

Definição

Obtém uma coleção inicial de controles WebPart contidos em uma zona, com base em um modelo ou algum meio de armazenamento.Gets an initial collection of WebPart controls contained in a zone, based on a template or some storage medium.

protected public:
 abstract System::Web::UI::WebControls::WebParts::WebPartCollection ^ GetInitialWebParts();
protected internal abstract System.Web.UI.WebControls.WebParts.WebPartCollection GetInitialWebParts ();
abstract member GetInitialWebParts : unit -> System.Web.UI.WebControls.WebParts.WebPartCollection
Protected Friend MustOverride Function GetInitialWebParts () As WebPartCollection

Retornos

WebPartCollection

Um WebPartCollection que contém o conjunto inicial de controles WebPart que pertencem a uma zona.A WebPartCollection that contains the initial set of WebPart controls that belong in a zone.

Comentários

O GetInitialWebParts método obtém a coleção inicial de WebPart controles para uma zona somente se houver um modelo preexistente ou outra forma de armazenamento que determina quais controles estão na zona.The GetInitialWebParts method gets the initial collection of WebPart controls for a zone only if there is a preexisting template or other form of storage that determines what controls are in the zone. O método não reflete nenhuma alteração de personalização, o que pode significar que os controles na coleção inicial foram realmente movidos por um usuário para outra zona.The method does not reflect any personalization changes, which might mean that controls in the initial collection have actually been moved by a user into another zone.

A coleção inicial de WebPart controles na zona não é necessariamente a mesma que a coleção contida na WebParts propriedade da zona, que reflete a coleção atual de controles na zona quando uma página é renderizada, levando em conta todas as alterações de personalização que foram feitas.The initial collection of WebPart controls in the zone are not necessarily the same as the collection contained in the WebParts property of the zone, which reflects the actual current collection of controls in the zone when a page is rendered, taking into account any personalization changes that have been made.

Notas aos Implementadores

O GetInitialWebParts() método é abstrato, portanto, deve ser implementado por classes derivadas.The GetInitialWebParts() method is abstract, so it must be implemented by derived classes. O GetInitialWebParts() método da WebPartZone classe contém uma implementação do método.The GetInitialWebParts() method of the WebPartZone class contains one implementation of the method.

Aplica-se a

Confira também