Export (0) Print
Expand All

FileLogTraceListener.ReserveDiskSpace Property

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

Gets or sets the amount of free disk space, in bytes, necessary before messages can be written to the log file.

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

public long ReserveDiskSpace { get; set; }
/** @property */
public long get_ReserveDiskSpace ()

/** @property */
public void set_ReserveDiskSpace (long value)

public function get ReserveDiskSpace () : long

public function set ReserveDiskSpace (value : long)

Property Value

Long. This is the amount of free disk space necessary. The default value is 10000000.

Exception typeCondition

ArgumentException

When this property is set to a value less than 0.

Use this property to make sure that the log files do not completely fill the disk.

If the amount of free disk space (in bytes) is less than the value of this property, then when the FileLogTraceListener class attempts to write a message to the log, the message is discarded and the failure is either silent or an exception is thrown depending on the value of the DiskSpaceExhaustedBehavior property. Otherwise, the message is written to the log, if the log file size (in bytes) is greater than MaxFileSize.

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

Community Additions

ADD
Show:
© 2014 Microsoft