Export (0) Print
Expand All

WebPartDescriptionCollection Constructor (ICollection)

Initializes a new instance of a WebPartDescriptionCollection object by passing in an ICollection collection of WebPartDescription objects.

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

public WebPartDescriptionCollection(
	ICollection webPartDescriptions


Type: System.Collections.ICollection
A collection of WebPartDescription objects that correspond to the WebPart controls in a catalog.


webPartDescriptions is null.


A member of webPartDescriptions is null


A member of webPartDescriptions is not an object of type WebPartDescription


A member of webPartDescriptions has a duplicate ID property

The WebPartDescriptionCollection(ICollection) constructor is used by the GetAvailableWebPartDescriptions method implementations within the various CatalogPart controls to create a collection of WebPartDescription objects.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.

Community Additions

© 2014 Microsoft