CreateEditorParts Method
Collapse the table of content
Expand the table of content

EditorZone.CreateEditorParts Method

Note: This method is new in the .NET Framework version 2.0.

Creates all the EditorPart controls declared within a zone template in page persistence format.

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

protected override EditorPartCollection CreateEditorParts ()
protected EditorPartCollection CreateEditorParts ()
protected override function CreateEditorParts () : EditorPartCollection

Return Value

An EditorPartCollection that contains references to all the EditorPart controls declared within the zone template.

Exception typeCondition


The current EditorPart control does not have an ID.

The CreateEditorParts method overrides the base method to create only the EditorPart controls that are declared within the zone template. Any other EditorPart controls added to the zone must be added programmatically. This can be done, for example, by implementing the IWebEditable interface in a WebPart control. Then, in the overridden CreateEditorParts method, you can add a collection of custom EditorPart controls to a zone.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2015 Microsoft