FileLogTraceListener.AutoFlush Property

Note: This property is new in the .NET Framework version 2.0.

Indicates whether or not the writing to the log file stream flushes the buffer.

Namespace: Microsoft.VisualBasic.Logging
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public bool AutoFlush { get; set; }
/** @property */
public boolean get_AutoFlush ()

/** @property */
public void set_AutoFlush (boolean value)

public function get AutoFlush () : boolean

public function set AutoFlush (value : boolean)

Property Value

Boolean, with True indicating that the stream is flushed after every write; otherwise the log entries are buffered and written more efficiently. The default setting for this property is False.

The False setting for the AutoFlush property provides the best performance for most applications, because it is more efficient to write multiple messages to the log file at one time. You can use the Flush method to flush any messages currently in the log file's output buffer. You can also use the Close method, which implicitly flushes the stream before closing the log file.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0