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)
Syntax
'Declaration
Public Shared Function UseLargeListQuerySemantics ( _
list As SPList _
) As Boolean
'Usage
Dim list As SPList
Dim returnValue As Boolean
returnValue = ContentIterator.UseLargeListQuerySemantics(list)
public static bool UseLargeListQuerySemantics(
SPList list
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
SPList.
Return Value
Type: System.Boolean
Returns Boolean.
Remarks
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:
- Deferring the creation of an index until the list has reached a certain size threshold.
- Running a filtered query if the list is small; walk the items otherwise.