WebPartPreview Class

The WebPartPreview class provides a preview of a Web Part in the Web Part catalog.

System.Object

    System.Web.UI.Control

      Microsoft.SharePoint.WebPartPages.WebPartPreview

Public Constructors

The following table shows the constructors of the WebPartPreview class and a brief description of each.

Name Description
WebPartPreview Initializes a new instance of the WebPartPreview class.

Public Methods

The following table shows the methods of the WebPartPreview class and a brief description of each.

Name Description
CreateChildControls This method overrides Control.CreateChildControls. It notifies server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

Public Properties

The following table shows the properties of the WebPartPreview class, the data type of each property, and a brief description of each.

Name Data type Description
WebPart Microsoft.SharePoint.WebPartPages.WebPart Provides a read-only copy of a Web Part to be displayed on the Web Part preview page of the Web Part catalog.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.

Requirements

Namespace: Microsoft.SharePoint.WebPartPages

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security