This documentation is archived and is not being maintained.

BufferModeSettings Constructor

Initializes a new instance of the BufferModeSettings class using specified settings.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public BufferModeSettings(
	string name,
	int maxBufferSize,
	int maxFlushSize,
	int urgentFlushThreshold,
	TimeSpan regularFlushInterval,
	TimeSpan urgentFlushInterval,
	int maxBufferThreads


Type: System.String
The name of the BufferModeSettings object being created.
Type: System.Int32
The maximum number of events buffered at one time. The value must be greater than zero.
Type: System.Int32
The maximum number of events per buffer flush. Must be greater than zero.
Type: System.Int32
The number of events buffered before a buffer flush is triggered. The value must be greater than zero and less than or equal to maxBufferSize.
Type: System.TimeSpan
The standard amount of time between buffer flushes. The value can be made infinite by setting it to MaxValue ticks.
Type: System.TimeSpan
The minimum length of time that can pass between buffer flushes. The value must be less than or equal to regularFlushInterval.
Type: System.Int32
The maximum number of buffer-flushing threads that can be active at one time.

The following code example shows how to use the BufferModeSettings constructor. This code example is part of a larger example provided for the HealthMonitoringSection class.

// Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error Log", 
    1024, 256, 512, new TimeSpan(0, 30, 0), new TimeSpan(0, 5, 0), 2));

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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