EditorZone::CreateEditorParts Method
Creates all the EditorPart controls declared within a zone template in page persistence format.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System.Web.UI.WebControls.WebParts::EditorPartCollectionAn EditorPartCollection that contains references to all the EditorPart controls declared within the zone template.
| Exception | Condition |
|---|---|
| InvalidOperationException | 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.