WebPart.UnknownXmlElements Property

Gets an UnknownXmlElementCollection object that contains XML elements from an imported SharePoint Web Part that were not mapped to a property on the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<BrowsableAttribute(False)> _
Public ReadOnly Property UnknownXmlElements As UnknownXmlElementCollection
    Get
'Usage
Dim instance As WebPart
Dim value As UnknownXmlElementCollection

value = instance.UnknownXmlElements
[WebPartStorageAttribute(Storage.Shared)]
[BrowsableAttribute(false)]
public UnknownXmlElementCollection UnknownXmlElements { get; }

Property Value

Type: Microsoft.SharePoint.WebPartPages.UnknownXmlElementCollection
An UnknownXmlElementCollection object containing any unmapped properties from an imported SharePoint Web Part.

Remarks

The UnknownXmlElements property is used in conjunction with the AfterDeserialize method to manage changes to saved properties when upgrading a Web Part assembly. To view a code example that demonstrates how to use this property, see AfterDeserialize.

See Also

Reference

WebPart Class

WebPart Members

Microsoft.SharePoint.WebPartPages Namespace