This documentation is archived and is not being maintained.

WebPartDescription Constructor

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

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

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.

Show: