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 nullptr 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.