BufferModeSettings.MaxFlushSize 属性

定义

获取或设置每个刷新的最大事件数。

public:
 property int MaxFlushSize { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("maxFlushSize", DefaultValue=2147483647, IsRequired=true)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxFlushSize { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("maxFlushSize", DefaultValue=2147483647, IsRequired=true)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxFlushSize : int with get, set
Public Property MaxFlushSize As Integer

属性值

每个刷新的最大事件数。

属性

示例

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

bufferModeSetting.MaxFlushSize = 24;
bufferModeSetting.MaxFlushSize = 24

注解

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

默认值因提供程序而异。 BufferModeSettings集合中的BufferModes对象由集合中的Providers提供程序按名称引用。

适用于

另请参阅