ContentIterator.UseLargeListQuerySemantics Method

Indicates whether queries against the specified SPList object should use large list query semantics.

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)


Public Shared Function UseLargeListQuerySemantics ( _
    list As SPList _
) As Boolean
Dim list As SPList
Dim returnValue As Boolean

returnValue = ContentIterator.UseLargeListQuerySemantics(list)
public static bool UseLargeListQuerySemantics(
    SPList list


Return Value

Type: System.Boolean
Returns Boolean.


If this list's item count exceeds the threshold that would trigger an expensive scan against the list, queries against this list should ensure that they are appropriately indexed to avoid the scan.

This differs from SPList.IsThrottled in that this check is intended for third-party code differentiating what types of queries can be successfully made against this list.

Common use cases include:

  1. Deferring the creation of an index until the list has reached a certain size threshold.
  1. Running a filtered query if the list is small; walk the items otherwise.

See Also


ContentIterator Class

ContentIterator Members

Microsoft.Office.Server.Utilities Namespace