Share via


MarkerWriter.IsEnabled Method (Int32)

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

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

Syntax

'Declaration
Public Function IsEnabled ( _
    category As Integer _
) As Boolean
public bool IsEnabled(
    int category
)
public:
bool IsEnabled(
    int category
)
member IsEnabled : 
        category:int -> bool
public function IsEnabled(
    category : int
) : boolean

Parameters

  • category
    Type: Int32

    The category of the span. Any integer is valid.

Return Value

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

.NET Framework Security

See Also

Reference

MarkerWriter Class

IsEnabled Overload

Microsoft.ConcurrencyVisualizer.Instrumentation Namespace