Share via


Markers.IsEnabled Method (Importance, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether any session has enabled the markers ETW provider with the specified importance level and category.

Namespace:  Microsoft.ConcurrencyVisualizer.Instrumentation
Assembly:  Microsoft.ConcurrencyVisualizer.Markers (in Microsoft.ConcurrencyVisualizer.Markers.dll)

Syntax

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

Parameters

  • category
    Type: System.Int32

    The category of the span. Any integer is valid.

Return Value

Type: System.Boolean
true to indicate a session is enabled; otherwise, false.

.NET Framework Security

See Also

Reference

Markers Class

IsEnabled Overload

Microsoft.ConcurrencyVisualizer.Instrumentation Namespace