BufferModeSettings Constructor (String, Int32, Int32, Int32, TimeSpan, TimeSpan, Int32)

 

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

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

new : 
        name:string *
        maxBufferSize:int *
        maxFlushSize:int *
        urgentFlushThreshold:int *
        regularFlushInterval:TimeSpan *
        urgentFlushInterval:TimeSpan *
        maxBufferThreads:int -> BufferModeSettings

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: