CatalogPart.GetWebPart Method
Assembly: System.Web (in system.web.dll)
public abstract WebPart GetWebPart ( WebPartDescription description )
public abstract function GetWebPart ( description : WebPartDescription ) : WebPart
Parameters
- description
A WebPartDescription that contains a reference to a specific WebPart.
Return Value
A WebPart that is referenced by the object in the description parameter.The GetWebPart method returns a WebPart control from a catalog. The WebPartDescription object that is passed to the method matches a specific WebPart control and enables that control to be returned by the method.
If a catalog contains a server control that does not derive from the WebPart class, such as an ASP.NET server control, a custom server control, or a user control, a CatalogPart control must wrap the server control with a GenericWebPart control, and return the GenericWebPart control from this method.
Notes to Inheritors The GetWebPart method is abstract, so it must be implemented by derived CatalogPart controls. This method is called by the zone that contains a CatalogPart control, by an associated CatalogPartChrome object, and by the WebPartManager object on a Web page.Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.