WebPartDescriptionCollection Constructor (ICollection)
Initializes a new instance of a WebPartDescriptionCollection object by passing in an ICollection collection of WebPartDescription objects.
Assembly: System.Web (in System.Web.dll)
Parameters
- webPartDescriptions
- Type: System.Collections::ICollection
A collection of WebPartDescription objects that correspond to the WebPart controls in a catalog.
| Exception | Condition |
|---|---|
| ArgumentNullException | webPartDescriptions is nullptr. |
| ArgumentException | A member of webPartDescriptions is nullptr -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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.