Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
全部。我正在尝试为 SP2010 列表构建 CAML 查询,该列表将检查公告以查看是否添加了任何新内容(或 CAML 查询 + 某些功能)。我还没有真正了解 CAML 和 SP,如果有任何帮助,我将不胜感激 - 谢谢。
如果您想走 CAML 路线,请查看 SPQuery 对象。您将希望获取给定日期/时间范围内的所有项目,除非您有一个字段来标记项目是否是新的.....下面的链接应该可以帮助您构建查询
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fed59f8e-72e2-46e2-9329-460fd65d7536/caml-query-datetime
拥有 SPQuery 对象后,将其传递给 SPList GetItems() 方法
然后,您将拥有一系列物品,然后您将如何处理它们:)
希望这可以帮助