此处有关从SharePoint中的任何列表中读取记录的任何限制?

我的代码默认从MSDN下载:

    string siteUrl = SharePointAddressURL;

    ClientContext clientContext = new ClientContext(SharePointAddressURL);
    SP.List oList = clientContext.Web.Lists.GetByTitle(TargetListName);

    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "<View><Query><Where><Geq><FieldRef Name='ID'/>" +
        "<Value Type='Number'>10</Value></Geq></Where></Query><RowLimit>500</RowLimit></View>";
    ListItemCollection collListItem = oList.GetItems(camlQuery);

    clientContext.Load(collListItem);

    try
    {
        clientContext.ExecuteQuery();
    }
    catch (Exception e1)
    {
        lblMessage.Text = e1.Message;

        throw;
    }
.

rowlimit 限制?

这个应用程序非常好,但较新的记录,它们的ID大约500不会出现

对我来说非常奇怪

有帮助吗?

解决方案

您在ViewXML属性中添加了 500 - 因此只返回500项。 Afaik没有限制,但你可以遇到客户端的超时或内存限制。

我会向您推荐免费的camldesigner( http://sharepoint.biwug.be/sitepages/caml_designer.aspx ) - 您可以在那里创建CAML并检查一个漂亮的GUI中的结果。

许可以下: CC-BY-SA归因
scroll top