TraceListener.IsThreadSafe Property

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

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

public:
virtual property bool IsThreadSafe {
	bool get ();
}
/** @property */
public boolean get_IsThreadSafe ()

public function get IsThreadSafe () : boolean

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: