Share via


SPSqlQueryCounter constructor (Int32)

Initializes a new instance of the SPSqlQueryCounter class. This constructor initializes the monitor with a value that is used to increase the value of the ValueIsExcessive property.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    maxAllowedQueries As Integer _
)
'Usage
Dim maxAllowedQueries As Integer

Dim instance As New SPSqlQueryCounter(maxAllowedQueries)
public SPSqlQueryCounter(
    int maxAllowedQueries
)

Parameters

  • maxAllowedQueries
    Type: System.Int32

    An integer value that is used to increase the value of the ValueIsExcessive property.

Remarks

The ValueIsExcessive property is used to automatically increase the logging level of the scope and to highlight excessive values in the Developer Dashboard.

See also

Reference

SPSqlQueryCounter class

SPSqlQueryCounter members

SPSqlQueryCounter overload

Microsoft.SharePoint.Utilities namespace