共用方式為


SPSystemPerformanceCounterMonitor.CounterError property

如果最後一次嘗試讀取Value屬性無法讀取基礎計數器,請取得的錯誤訊息。

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

Syntax

'宣告
Public ReadOnly Property CounterError As String
    Get
'用途
Dim instance As SPSystemPerformanceCounterMonitor
Dim value As String

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

Property value

Type: System.String
錯誤訊息或空白String時沒有任何錯誤。

備註

如果無法讀取基礎計數器, Value會有值0.0 f 。

請參閱

參照

SPSystemPerformanceCounterMonitor class

SPSystemPerformanceCounterMonitor members

Microsoft.SharePoint.Utilities namespace