BufferModeSettings.UrgentFlushThreshold 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置可以在触发刷新之前缓冲的事件数。
public:
property int UrgentFlushThreshold { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("urgentFlushThreshold", DefaultValue=2147483647, IsRequired=true)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int UrgentFlushThreshold { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("urgentFlushThreshold", DefaultValue=2147483647, IsRequired=true)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.UrgentFlushThreshold : int with get, set
Public Property UrgentFlushThreshold As Integer
属性值
在触发刷新之前可以缓冲的事件数。
- 属性
示例
下面的代码示例演示如何使用该 MaxBufferSize 属性。 该代码示例是 HealthMonitoringSection 类中的一个较大示例的一部分。
bufferModeSetting.UrgentFlushThreshold = 1;
bufferModeSetting.UrgentFlushThreshold = 1
注解
此属性的值必须大于零且小于或等于该属性的值 MaxBufferSize 。 保存配置节时,无效值可能会导致异常。
默认值因提供程序而异。 BufferModeSettings集合中的BufferModes对象由集合中的Providers提供程序按名称引用。