CatalogZoneBase.CreateCatalogParts 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.
Provides a base method declaration that derived zones can override to handle the details of creating the CatalogPart controls contained in a zone.
protected:
abstract System::Web::UI::WebControls::WebParts::CatalogPartCollection ^ CreateCatalogParts();
protected abstract System.Web.UI.WebControls.WebParts.CatalogPartCollection CreateCatalogParts ();
abstract member CreateCatalogParts : unit -> System.Web.UI.WebControls.WebParts.CatalogPartCollection
Protected MustOverride Function CreateCatalogParts () As CatalogPartCollection
Returns
A CatalogPartCollection that contains the collection of CatalogPart controls associated with the zone.
Remarks
The CreateCatalogParts method provides no implementation. It is intended to be implemented in a derived class, and should be used to create an instance of the collection of CatalogPart controls contained in a zone, whenever the hosting Web page enters catalog mode. The CatalogZone.CreateCatalogParts method provides one example of an implementation of the CreateCatalogParts method.
Note
Note that any CatalogPart that is added to the collection of CatalogPart controls in an implementation of the CreateCatalogParts method must have a value assigned to its ID property, otherwise an exception will be thrown when the collection is assigned to the CatalogParts property.
The method can create the CatalogPart controls from several sources: controls that are declared in persistence format within a DeclarativeCatalogPart control, or controls that are persisted in various storage mechanisms, such as an XML file or a database.
Notes to Implementers
Developers who create custom CatalogPart controls should inherit from the CatalogZoneBase or CatalogZone classes, and override this method if they want to create a custom CatalogPartChrome object to render their custom CatalogPart controls.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기