WebPartDescriptionCollection.WebPartDescriptionCollection(ICollection) Constructor

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
)
public WebPartDescriptionCollection (
	ICollection webPartDescriptions
)
public function WebPartDescriptionCollection (
	webPartDescriptions : ICollection
)
Not applicable.

Parameters

webPartDescriptions

A collection of WebPartDescription objects that correspond to the WebPart controls in a catalog.

Exception typeCondition

ArgumentNullException

webPartDescriptions is a null reference (Nothing in Visual Basic).

ArgumentException

A member of webPartDescriptions is a null reference (Nothing in Visual Basic)

-or-

A member of webPartDescriptions is not an object of type WebPartDescription

-or-

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.

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: