BufferModeSettings.RegularFlushInterval Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the amount of time between buffer flushes.
public:
property TimeSpan RegularFlushInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue="00:00:01", IsRequired=true)]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan RegularFlushInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue="00:00:01", IsRequired=true)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.RegularFlushInterval : TimeSpan with get, set
Public Property RegularFlushInterval As TimeSpan
The regular amount of time between buffer flushes.
- Attributes
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;
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: