Share via


ExportWebPartClass Class

The ExportWebPartClass class provides an ASP.NET page that returns the DWP string format of a Web Part given a Web Part Page and the Web Part GUID.

System.Object

    System.Web.UI.Control

       System.Web.UI.TemplateControl

          System.Web.UI.Page

            Microsoft.SharePoint.SoapServer.ExportWebPartClass

Public Constructors

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

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

Public Methods

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

Name Description
Render(System.Web.UI.HtmlTextWriter) Renders the HTML returned by the HtmlTextWriter class.

Thread Safety

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

Example

The following code example shows a button on a Web page that returns the DWP of a Web Part on a Web Part Part Page.

Requirements

Namespace: Microsoft.SharePoint.SoapServer

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security