WebPartDescription.CatalogIconImageUrl Property
Assembly: System.Web (in system.web.dll)
The CatalogIconImageUrl property corresponds directly to the WebPart.CatalogIconImageUrl property. If that property is set on a WebPart control, then the property in the corresponding WebPartDescription object will also have a value.
The CatalogIconImageUrl property applies only when a page is in catalog display mode, and a WebPart control is being displayed in a catalog of controls. If the control has an icon assigned to it in the property value, the icon appears in the catalog next to the control.
The following code example demonstrates programmatic use of the CatalogIconImageUrl property. For the full code required to run this code example, see the Example section of the WebPartDescription class overview topic.
The following code in the Button1_Click method of a Web page demonstrates how to get the collection of WebPartDescription objects in a catalog using the GetAvailableWebPartDescriptions method, and then to display the details of each WebPart control in the catalog by looping through the WebPartDescription objects. Note that the CatalogIconImageUrl property value is retrieved in the following code.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.