WebPartDescription Constructor

 

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

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

NameDescription
System_CAPS_pubmethodWebPartDescription(String, String, String, String)

Initializes a new instance of the class by using several strings that contain description information for a WebPart control.

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

Return to top
Show: