Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

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 null.

ArgumentException

A member of webPartDescriptions is null

-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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft