WebPartDescription Constructor (String^, String^, String^, String^)
Initializes a new instance of the class by using several strings that contain description information for a WebPart control.
Assembly: System.Web (in System.Web.dll)
public:
WebPartDescription(
String^ id,
String^ title,
String^ description,
String^ imageUrl
)
Parameters
- id
-
Type:
System::String^
The value to assign to the ID.
- title
-
Type:
System::String^
The value to assign to the Title.
- description
-
Type:
System::String^
The value to assign to the Description.
- imageUrl
-
Type:
System::String^
The value to assign to the CatalogIconImageUrl.
| Exception | Condition |
|---|---|
| ArgumentNullException | id or title is null or an empty string (""). |
The WebPartDescription constructor is used to create a new instance of the WebPartDescription class when a WebPart control is not available. For example, this occurs in the case of an ImportCatalogPart control when it imports a description file for a WebPart control. It gets the information it needs to create a WebPartDescription object directly from the description file, and a WebPart instance is not present.
Available since 2.0