EventSource.IsEnabled Method ()

.NET Framework (current version)
 

Determines whether the current event source is enabled.

Namespace:   System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

public bool IsEnabled()

Return Value

Type: System.Boolean

true if the current event source is enabled; otherwise, false.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: