This documentation is archived and is not being maintained.

EventLogConfiguration::MaximumSizeInBytes Property

Gets or sets the maximum size, in bytes, that the event log file is allowed to be. When the file reaches this maximum size, it is considered full.

Namespace:  System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

public:
property long long MaximumSizeInBytes {
	long long get ();
	void set (long long value);
}

Property Value

Type: System::Int64
Returns a long value that represents the maximum size, in bytes, that the event log file is allowed to be.

If the value of this property is changed, call the SaveChanges method to save the changes.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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

.NET Framework

Supported in: 3.5
Show: