Gets the ID of a corresponding WebPart control.
Assembly: System.Web (in System.Web.dll)
The following code example demonstrates programmatic use of the 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 property value is retrieved in the following code.