This documentation is archived and is not being maintained.

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.

Namespace:  System.Web.UI.WebControls.WebParts
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.

ExceptionCondition
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, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: