次の方法で共有


MarkerWriter.IsEnabled Method (Importance, Int32)

 

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

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 As Importance,
    category As Integer
) As 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.

See Also

IsEnabled Overload
MarkerWriter Class
Microsoft.ConcurrencyVisualizer.Instrumentation Namespace

Return to top