BufferModeSettings.UrgentFlushInterval Właściwość

Definicja

Pobiera lub ustawia minimalny czas, który może przechodzić między opróżnieniami buforu.

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

Wartość właściwości

TimeSpan

Minimalny czas, który może przechodzić między opróżnieniami buforu.

Atrybuty

Przykłady

W poniższym przykładzie kodu pokazano, jak używać MaxBufferSize właściwości. Ten przykład kodu jest częścią większego przykładu podanego HealthMonitoringSection dla klasy.

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

Uwagi

Ta właściwość musi mieć wartość większą niż zero i mniejszą lub równą wartości RegularFlushInterval właściwości. Nieprawidłowe wartości mogą spowodować zgłoszenie wyjątku podczas zapisywania sekcji konfiguracji.

Wartość domyślna zależy od dostawcy. Obiekty BufferModeSettings w BufferModes kolekcji są określane według nazwy dostawców w kolekcji Providers .

Dotyczy

Zobacz też