WebPartDescription Constructor

Initializes a new instance of the class that contains information about a specific WebPart control.

The overloads for the WebPartDescription constructor each return a new instance of the WebPartDescription class, which contains information about a specific WebPart control. The difference between the overloads is the scenario in which the new instance is created. In some cases, when the application has an available instance of a WebPart control, the WebPartDescription constructor is used. When the application does not have a control instance, as is the case when a control description file is being imported through the ImportCatalogPart control, the WebPartDescription constructor is used.

ASP.NET Web Parts Pages GetAvailableWebPartDescriptions

Name Description
WebPartDescription (WebPart) Initializes a new instance of the class when a WebPart control instance is available.
WebPartDescription (String, String, String, String) Initializes a new instance of the class by using several strings that contain description information for a WebPart control.

Community Additions

ADD
Show: