WebPart.UnknownXmlElements 属性

获取包含已未映射到 Web 部件的属性的 XML 元素从导入的 SharePoint Web 部件的UnknownXmlElementCollection对象。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public ReadOnly Property UnknownXmlElements As UnknownXmlElementCollection
    Get
用法
Dim instance As WebPart
Dim value As UnknownXmlElementCollection

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

属性值

类型:Microsoft.SharePoint.WebPartPages.UnknownXmlElementCollection
一个包含导入的 SharePoint Web 部件中的任何未映射的属性的UnknownXmlElementCollection对象。

备注

UnknownXmlElements属性用于结合使用AfterDeserialize方法升级 Web 部件程序集在时管理对保存属性的更改。若要查看演示如何使用此属性的代码示例,请参阅AfterDeserialize

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间