0

我需要存储几个对象(不是简单类型)来共享点并从所有站点访问它们。我的第一次尝试是使用 SPPersistedObject 保存,但无法保存列表:

he platform does not know how to deserialize an object of type DataItems.SearchResultItem. The platform can deserialize primitive types such as strings, integers, and GUIDs; other SPPersistedObjects or SPAutoserializingObjects; or collections of any of the above. Consider redesigning your objects to store values in one of these supported formats, or contact your software vendor for support.

我怎样才能做到这一点?

4

2 回答 2

1

你到底想拯救什么?是否可以将其简化为包含不同列的 SharePoint 列表,这些列代表您要保存的全部内容?

于 2011-04-19T15:17:55.877 回答
1

解决方案是存储 SPPersistedObject 并将对象序列化为 xml 字符串。

于 2011-05-13T13:45:58.017 回答