次の方法で共有


SPSqlQueryCounter class

Represents a monitor that tracks information about the SQL queries that are made during an operation. For each query, this monitor tracks the SqlQueryData text, the call stack, and the duration.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Utilities.SPSqlQueryCounter

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

Syntax

'Declaration
Public Class SPSqlQueryCounter _
    Implements ISPScopedPerformanceMonitor, IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization
'Usage
Dim instance As SPSqlQueryCounter
public class SPSqlQueryCounter : ISPScopedPerformanceMonitor, 
    IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPSqlQueryCounter members

Microsoft.SharePoint.Utilities namespace