MarkerWriter.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
    类型:System.Int32
    范围的分类。任何整数有效。

返回值

类型:System.Boolean
指示会话的true 启用;否则, false。

.NET Framework 安全性

请参见

参考

MarkerWriter 类

IsEnabled 重载

Microsoft.ConcurrencyVisualizer.Instrumentation 命名空间