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)

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