Condividi tramite


ExportWebPartFileClass Class

Provides an ASP.NET page that returns the DWP string format of a Web Part given the file name of the DWP file.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.Page
        Microsoft.SharePoint.SoapServer.ExportWebPartFileClass

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

Syntax

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

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

Examples

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

<a href="http://hlsharepoint/_vti_bin/expurlwp.aspx?FileName=MyWebPart%2edwp" 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

ExportWebPartFileClass Members

Microsoft.SharePoint.SoapServer Namespace