共用方式為


SPCriticalTraceCounter.IsEnabled property

如果這個值是true追蹤將會收集和儀表板] 所示。

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

Syntax

'宣告
Public Shared ReadOnly Property IsEnabled As Boolean
    Get
'用途
Dim value As Boolean

value = SPCriticalTraceCounter.IsEnabled
public static bool IsEnabled { get; }

Property value

Type: System.Boolean
指出是否啟用了這個追蹤計數器Boolean .

請參閱

參照

SPCriticalTraceCounter class

SPCriticalTraceCounter members

Microsoft.SharePoint.Utilities namespace