Edit

Share via


TraceListener.IsThreadSafe Property

Definition

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.

Applies to