Editar

Partilhar via


BufferModeSettings.MaxBufferThreads Property

Definition

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.

Applies to

See also