TraceListener.IsThreadSafe Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the trace listener is thread safe.
public:
virtual property bool IsThreadSafe { bool get(); };
public virtual bool IsThreadSafe { get; }
member this.IsThreadSafe : bool
Public Overridable ReadOnly Property IsThreadSafe As Boolean
Property Value
true
if the trace listener is thread safe; otherwise, false
. The default is false
.
Remarks
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.