IsThreadSafe Property
Collapse the table of content
Expand the table of content

TraceListener.IsThreadSafe Property


Gets a value indicating whether the trace listener is thread safe.

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

abstract IsThreadSafe : bool with get
override IsThreadSafe : bool with get

Property Value

Type: System.Boolean

true if the trace listener is thread safe; otherwise, false. The default is false.

The value of IsThreadSafe is used to determine whether to use a global lock when writing to the listener. If the value of IsThreadSafe is false, the global lock is used regardless of the value of UseGlobalLock. The global lock is not used only if the value of IsThreadSafe is true and the value of UseGlobalLock is false. The default behavior is to use the global lock whenever writing to the listener.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft