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.
我在具有 4 种不同 SharePoint 实现的环境中工作。所有 4 个环境都运行相同的代码块,但 List View Threshold 未配置为相同的值,这导致某些搜索超出阈值,而其他搜索运行没有问题。
有没有办法以编程方式找到阈值的值?
要回答我自己的问题,是的。在 PowerShell 中向 Google 询问同样的事情给了我足够的线索来弄清楚这行代码:SPContext.Current.Web.Site.WebApplication.MaxItemsPerThrottledOperation
SPContext.Current.Web.Site.WebApplication.MaxItemsPerThrottledOperation