BufferModeSettings.MaxBufferThreads Property
Definition
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 maximum number of flushing threads that can be active at one time.
public:
property int MaxBufferThreads { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("maxBufferThreads", DefaultValue=1)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxBufferThreads { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("maxBufferThreads", DefaultValue=1)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxBufferThreads : int with get, set
Public Property MaxBufferThreads As Integer
Property Value
The maximum number of flushing threads that can be active at one time. The default is 1.
- Attributes
Examples
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.MaxBufferThreads = 1;
bufferModeSetting.MaxBufferThreads = 1
Remarks
This property must have a value greater than zero. Invalid values may cause an exception to be thrown when the configuration section is saved.