MarkerSeries.IsEnabled 方法 (Importance, Int32)

判斷是否有任何工作階段已啟用具有指定之重要性層級及分類的標記 ETW 提供者。

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

語法

'宣告
Public Function IsEnabled ( _
    level As Importance, _
    category As Integer _
) As Boolean
public bool IsEnabled(
    Importance level,
    int category
)
public:
bool IsEnabled(
    Importance level, 
    int category
)
member IsEnabled : 
        level:Importance * 
        category:int -> bool
public function IsEnabled(
    level : Importance, 
    category : int
) : boolean

參數

  • category
    類型:Int32

    延伸的分類。 任何整數有效。

傳回值

類型:Boolean
true 表示已啟用工作階段,否則為 false。

.NET Framework 安全性

請參閱

參考

MarkerSeries 類別

IsEnabled 多載

Microsoft.ConcurrencyVisualizer.Instrumentation 命名空間