BufferModeSettings.MaxBufferThreads 属性

定义

获取或设置一次可处于活动状态的最大刷新线程数。

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

属性值

一次可处于活动状态的刷新线程的最大数目。 默认值为 1。

属性

示例

下面的代码示例演示如何使用该 MaxBufferSize 属性。 该代码示例是 HealthMonitoringSection 类中的一个较大示例的一部分。

bufferModeSetting.MaxBufferThreads = 1;
bufferModeSetting.MaxBufferThreads = 1

注解

此属性的值必须大于零。 无效值可能会导致保存配置节时引发异常。

适用于

另请参阅