为什么这个 foreach 循环提前停止?

Why is this foreach loop stopping early?

我正在尝试从 AtTask/WorkFront 站点提取项目信息。我正在使用的 foreach 循环每次都在 100 个项目处停止循环。

JToken projects = client.Search(ObjCode.PROJECT, new { groupID = userGroupID });
foreach (var j in projects["data"].Children())
{
    Console.WriteLine("# " + counter + " Name: {0}", j.Value<string>("name")); 
    counter++;
}

这会按照我的需要生成名称,只是循环总是突然停止。此循环的代码直接来自 WorkFront 开发人员站点 (https://developers.workfront.com/api-docs/code-samples/)。

是WorkFrontAPI有调用限制导致的还是代码有误?我该怎么做才能解决这个问题?

来自the documentation

Default Number of Results 100 If no limit is specified in the query filter (ie, $$LIMIT), the result will contain no more than 100 primary objects. See the example below for instructions on how to use the $$LIMIT in your query filter.

通过 WorkFront 文档...

If no limit is specified in the query filter (ie, $$LIMIT), the result will contain no more than 100 primary objects. See the example below for instructions on how to use the $$LIMIT in your query filter.

https://developers.workfront.com/api-docs/#Guidelines