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)
Available in Sandboxed Solutions: No
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.Int32An 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.