WebPartDescription Constructor
Initializes a new instance of the class that contains information about a specific WebPart control.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | WebPartDescription(String^, String^, String^, String^) | Initializes a new instance of the class by using several strings that contain description information for a WebPart control. |
![]() | WebPartDescription(WebPart^) | Initializes a new instance of the class when a WebPart control instance is available. |
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.
