SPLimitedWebPartManager.ExportWebPart method
Serializa a Web Part especificada em um XmlWriter como um arquivo. WebPart ou *. dwp.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Sub ExportWebPart ( _
webPart As WebPart, _
writer As XmlWriter _
)
'Uso
Dim instance As SPLimitedWebPartManager
Dim webPart As WebPart
Dim writer As XmlWriter
instance.ExportWebPart(webPart, writer)
public void ExportWebPart(
WebPart webPart,
XmlWriter writer
)
Parâmetros
- webPart
Type: System.Web.UI.WebControls.WebParts.WebPart
- writer
Type: System.Xml.XmlWriter
Comentários
Se a Web Part deriva WebPartPages e não usa recursos do System, como o System.Web.UI.WebControls.WebParts.PersonalizableAttribute, ele serializa como um arquivo *. dwp.
Se a Web Part deriva de System, ou deriva WebPartPages, mas usar determinados recursos chave do System, ele serializa um arquivo WebPart.