SPSiteDataQuery.QueryThrottleMode Property

Gets or sets a value that indicates the throttling mode to be applied to the query.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property QueryThrottleMode As SPQueryThrottleOption
    Get
    Set
'Usage
Dim instance As SPSiteDataQuery
Dim value As SPQueryThrottleOption

value = instance.QueryThrottleMode

instance.QueryThrottleMode = value
public SPQueryThrottleOption QueryThrottleMode { get; set; }

Property Value

Type: Microsoft.SharePoint.SPQueryThrottleOption
A member of the SPQueryThrottleOption enumeration that indicates the throttling mode.

Remarks

To determine whether a query exceeds the count of items allowed by the MaxItemsPerThrottledOperation or the MaxItemsPerThrottledOperationOverride property of SPWebApplication, a query described by the SPSiteDataQuery object does not consider indexed columns. This behavior differs from that of a query described by [T:Microsoft:SharePoint.SPQuery], which considers indexed column values.

See Also

Reference

SPSiteDataQuery Class

SPSiteDataQuery Members

Microsoft.SharePoint Namespace