SPSqlQueryCounter class
表示追蹤作業期間進行的 SQL 查詢的相關資訊的監視器。針對每一個查詢中,這個監視器追蹤SqlQueryData文字、 呼叫堆疊,並持續時間。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Utilities.SPSqlQueryCounter
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SPSqlQueryCounter _
Implements ISPScopedPerformanceMonitor, IDisposable, ISPPerformanceMonitor, ISupportNameValuePairsSerialization
'用途
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.