Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Imports an XML description file (*.dwp or *.webpart) that contains state and property data for a Web Part, and applies the data to the Web Part.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function ImportWebPart ( _
reader As XmlReader, _
<OutAttribute> ByRef errorMessage As String _
) As WebPart
'Usage
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
)
Parameters
- reader
Type: System.Xml.XmlReader
- errorMessage
Type: System.String
Return value
Type: System.Web.UI.WebControls.WebParts.WebPart