共用方式為


SPSystemPerformanceCounterMonitor.Counter Property

Gets the name of the counter that is watched by the SPSystemPerformanceCounterMonitor object.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property Counter As String
    Get
'Usage
Dim instance As SPSystemPerformanceCounterMonitor
Dim value As String

value = instance.Counter
public string Counter { get; }

Property Value

Type: System.String
The name of the counter.

Remarks

A counter represents one way of measuring the performance of the entity identified by the Category property. For example, among the counters in Windows Server 2008 for the “Processor” category are “% Processor Time”, “% Idle Time”, and “% C1 Time”; among the counters in the “SQL Server Database” category are “Active Transactions” and “Data File(s) Size”; and among counters in the “SharePoint Foundation Search Gatherer” category are “Active Queue Length” and “Delayed Documents”.

See Also

Reference

SPSystemPerformanceCounterMonitor Class

SPSystemPerformanceCounterMonitor Members

Microsoft.SharePoint.Utilities Namespace