EditorPartCollection.EditorPartCollection() Constructor

Initializes an empty new instance of the EditorPartCollection class.

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

public:
EditorPartCollection ()
public EditorPartCollection ()
public function EditorPartCollection ()
Not applicable.

The EditorPartCollection constructor initializes an empty instance of the EditorPartCollection class. This overload of the constructor is used internally by the EditorZone class in its CreateEditorParts method to create an empty collection object. The zone then creates instances of all the EditorPart controls declared in the child zone template, and uses an internal method to add them to the collection.

You cannot use this overload of the EditorPartCollection constructor to create a new instance of EditorPartCollection and add EditorPart controls to it. You must use one of the other overloads for the EditorPartCollection constructor instead.

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: