确定任何会话是否启用了与指定类别的标记 ETW 提供程序。
命名空间: Microsoft.ConcurrencyVisualizer.Instrumentation
程序集: Microsoft.ConcurrencyVisualizer.Markers(在 Microsoft.ConcurrencyVisualizer.Markers.dll 中)
语法
声明
Public Shared Function IsEnabled ( _
category As Integer _
) As Boolean
public static bool IsEnabled(
int category
)
public:
static bool IsEnabled(
int category
)
static member IsEnabled :
category:int -> bool
public static function IsEnabled(
category : int
) : boolean
参数
- category
类型:System.Int32
返回值
类型:System.Boolean
指示会话的true 启用;否则, false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。