BufferModeSettings.RegularFlushInterval Property

 

Gets or sets the amount of time between buffer flushes.

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

<ConfigurationPropertyAttribute("regularFlushInterval", IsRequired := True,
	DefaultValue := "00:00:01")>
<TypeConverterAttribute(GetType(InfiniteTimeSpanConverter))>
<TimeSpanValidatorAttribute(MinValueString := "00:00:00", MaxValueString := "10675199.02:48:05.4775807")>
Public Property RegularFlushInterval As TimeSpan

Property Value

Type: System.TimeSpan

The regular amount of time between buffer flushes.

This property must have a value greater than zero. The value can be made infinite by setting it to MaxValue ticks. Invalid values may cause an exception when the configuration section is saved.

The default value varies based on the provider. The BufferModeSettings objects in the BufferModes collection are referred to by name by the providers in the Providers collection.

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

bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue

.NET Framework
Available since 2.0
Return to top
Show: