Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CatalogPart.GetAvailableWebPartDescriptions Method

Note: This method is new in the .NET Framework version 2.0.

Returns a collection of descriptions of the available WebPart controls in a catalog.

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

public abstract WebPartDescriptionCollection GetAvailableWebPartDescriptions ()
public abstract WebPartDescriptionCollection GetAvailableWebPartDescriptions ()
public abstract function GetAvailableWebPartDescriptions () : WebPartDescriptionCollection

Return Value

A WebPartDescriptionCollection that contains a WebPartDescription for each control in a catalog.

The GetAvailableWebPartDescriptions method returns description information for each control in a catalog. A WebPartDescription object is a lightweight object that contains essential information about a WebPart control, including its ID, an object reference to the control, and the values of several important properties that are inherited from the base Part class, such as Title and Description.

The GetAvailableWebPartDescriptions method improves performance. When a catalog is created, it needs some information about each control it contains, including a title, a description, an icon (if one exists), and an ID. Rather than having to create an instance of each control to get this information, a caller can use the GetAvailableWebPartDescriptions method, which returns only the description information about each control.

Notes to Inheritors The GetAvailableWebPartDescriptions method is abstract, so it must be implemented by derived CatalogPart controls. This method is called by the zone that contains a CatalogPart control, and by an associated CatalogPartChrome object when the contents of a CatalogZoneBase zone are rendered.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.