共用方式為


Markers.IsEnabled 方法

判斷任何的工作階段是否已啟用標記 ETW 提供者。

命名空間:  Microsoft.ConcurrencyVisualizer.Instrumentation
組件:  Microsoft.ConcurrencyVisualizer.Markers (在 Microsoft.ConcurrencyVisualizer.Markers.dll 中)

語法

'宣告
Public Shared Function IsEnabled As Boolean
public static bool IsEnabled()
public:
static bool IsEnabled()
static member IsEnabled : unit -> bool 
public static function IsEnabled() : boolean

傳回值

型別:System.Boolean
true 表示已啟用工作階段。 否則, false。

.NET Framework 安全性

請參閱

參考

Markers 類別

IsEnabled 多載

Microsoft.ConcurrencyVisualizer.Instrumentation 命名空間