Question

I'm working in an environment that has 4 different SharePoint implementations. All 4 environments run the same chunk of code, but the List View Threshold is not configured to the same value, which results in some searches exceeding the threshold while others run without problems.

Is there a way to find the value of the threshold programmatically?

Was it helpful?

Solution

To answer my own question, yes. Asking The Google for the same thing in PowerShell gave me enough clues to figure out this line of code : SPContext.Current.Web.Site.WebApplication.MaxItemsPerThrottledOperation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top