Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FileLogTraceListener.ReserveDiskSpace Property

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 Value

Type: System.Int64
Long. This is the amount of free disk space necessary. The default value is 10000000.
ExceptionCondition
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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft. All rights reserved.