SPLimitedWebPartManager.ImportWebPart method
Importa um arquivo de descrição de XML (*. dwp ou WebPart) que contém os dados de estado e de propriedade para uma Web Part e aplica os dados à Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
Public Function ImportWebPart ( _
reader As XmlReader, _
<OutAttribute> ByRef errorMessage As String _
) As WebPart
'Uso
Dim instance As SPLimitedWebPartManager
Dim reader As XmlReader
Dim errorMessage As String
Dim returnValue As WebPart
returnValue = instance.ImportWebPart(reader, _
errorMessage)
public WebPart ImportWebPart(
XmlReader reader,
out string errorMessage
)
Parâmetros
- reader
Type: System.Xml.XmlReader
- errorMessage
Type: System.String
Valor retornado
Type: System.Web.UI.WebControls.WebParts.WebPart