写这篇文章的初衷是因为其他的业务系统要调用sharepoint的文档库信息,使其他的系统也可以获取sharepoint文档库的信息列表.在这个过程中尝试过用linq to sharepoint来获取文档列表,不过看了其他人对linq在sharepoint的分页效率的评价,不是很好,详情请戳这里.所以尝试用CAML来分页,在此记录以备忘.测试了一下,两万条分页毫无压力. 代码如下: using System; using Microsoft.SharePoint; using Microsoft.…
以下是代码: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Xml; namespace WebApplication2 { /// <summary> /// XMLHelper XML文档操作管理器 /// </summary> public class XMLHelper { …