共用方式為


Markers.IsEnabled 方法 (Int32)

 

發行︰ 2016年7月

判斷是否有任何工作階段已啟用指定之分類的標記 ETW 提供者。

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

語法

public static bool IsEnabled(
    int category
)
public:
static bool IsEnabled(
    int category
)
static member IsEnabled : 
        category:int -> bool
Public Shared Function IsEnabled (
    category As Integer
) As Boolean

參數

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

傳回值

Type: System.Boolean

true 表示已啟用工作階段,否則為 false

另請參閱

IsEnabled 多載
Markers 類別
Microsoft.ConcurrencyVisualizer.Instrumentation 命名空間

回到頁首