Share via


BufferModeSettings.UrgentFlushInterval 屬性

定義

取得或設定可在緩衝區更新之間傳遞的最少時間。

public:
 property TimeSpan UrgentFlushInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("urgentFlushInterval", DefaultValue="00:00:00", IsRequired=true)]
public TimeSpan UrgentFlushInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("urgentFlushInterval", DefaultValue="00:00:00", IsRequired=true)>]
member this.UrgentFlushInterval : TimeSpan with get, set
Public Property UrgentFlushInterval As TimeSpan

屬性值

可在緩衝區更新之間傳遞的最少時間。

屬性

範例

下列程式碼範例示範如何使用 MaxBufferSize 屬性。 此程式碼範例是提供給 類別之較大範例的 HealthMonitoringSection 一部分。

bufferModeSetting.UrgentFlushInterval = TimeSpan.Parse("00:01:00");
bufferModeSetting.UrgentFlushInterval = TimeSpan.Parse("00:01:00")

備註

這個屬性的值必須大於零,且小於或等於 屬性的值 RegularFlushInterval 。 不正確值可能會導致儲存組態區段時擲回例外狀況。

預設值會根據提供者而有所不同。 BufferModeSettings集合中的 BufferModes 物件是由集合中的 Providers 提供者依名稱來參考。

適用於

另請參閱