This documentation is archived and is not being maintained.
BufferModeSettings Constructor
Visual Studio 2010
Initializes a new instance of the BufferModeSettings class using specified settings.
Assembly: System.Web (in System.Web.dll)
public: BufferModeSettings( String^ name, int maxBufferSize, int maxFlushSize, int urgentFlushThreshold, TimeSpan regularFlushInterval, TimeSpan urgentFlushInterval, int maxBufferThreads )
Parameters
- name
- Type: System::String
The name of the BufferModeSettings object being created.
- maxBufferSize
- Type: System::Int32
The maximum number of events buffered at one time. The value must be greater than zero.
- maxFlushSize
- Type: System::Int32
The maximum number of events per buffer flush. Must be greater than zero.
- urgentFlushThreshold
- 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.
- regularFlushInterval
- Type: System::TimeSpan
The standard amount of time between buffer flushes. The value can be made infinite by setting it to MaxValue ticks.
- urgentFlushInterval
- Type: System::TimeSpan
The minimum length of time that can pass between buffer flushes. The value must be less than or equal to regularFlushInterval.
- maxBufferThreads
- 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.
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.
Show: