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提供者以名稱來稱呼。