Partilhar via


SPSystemPerformanceCounterMonitor.CounterError Property

Gets the error message if the last attempt to read the Value property failed to read the underlying counter.

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

Syntax

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

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

Property Value

Type: System.String
An error message or empty String when there is no error.

Remarks

Value will have the value 0.0f if the underlying counter could not be read.

See Also

Reference

SPSystemPerformanceCounterMonitor Class

SPSystemPerformanceCounterMonitor Members

Microsoft.SharePoint.Utilities Namespace