Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPLimitedWebPartManager.ExportWebPart Method (Microsoft.SharePoint.WebPartPages)
Serializes the specified Web Part into an XmlWriter as a *.dwp or *.webpart file.

Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Sub ExportWebPart ( _
    webPart As WebPart, _
    writer As XmlWriter _
)
Visual Basic (Usage)
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim writer As XmlWriter

instance.ExportWebPart(webPart, writer)
C#
public void ExportWebPart (
    WebPart webPart,
    XmlWriter writer
)

Parameters

webPart

writer

If the Web Part derives from Microsoft.SharePoint.WebPartPages.WebPart, and does not use features from System.Web.UI.WebControls.WebParts.WebPart, such as the System.Web.UI.WebControls.WebParts.PersonalizableAttribute, it serializes as a *.dwp file.

If the Web Part derives from System.Web.UI.WebControls.WebParts.WebPart, or derives from Microsoft.SharePoint.WebPartPages.WebPart, but does use certain key features from System.Web.UI.WebControls.WebParts.WebPart, then it serializes as a *.webpart file.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker