Condividi tramite


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.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.Page
        Microsoft.SharePoint.WebPartPages.WebPartPage
          Microsoft.SharePoint.SoapServer.ExportWebPartClass

Namespace:  Microsoft.SharePoint.SoapServer
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class ExportWebPartClass _
    Inherits WebPartPage

Dim instance As ExportWebPartClass
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class ExportWebPartClass : WebPartPage

Examples

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

<a href="http://MyServer/_vti_bin/exportwp.aspx?pageurl=' http://MyServer/default.aspx'&guidstring='Guid(WebPartID)’" title="Export"><img src="/_layouts/images/export.gif" alt="Export"></a>

Thread Safety

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

See Also

Reference

ExportWebPartClass Members

Microsoft.SharePoint.SoapServer Namespace