BufferModeSettings.RegularFlushInterval Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia czas między opróżnieniami buforu.
public:
property TimeSpan RegularFlushInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue="00:00:01", IsRequired=true)]
[System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")]
public TimeSpan RegularFlushInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("regularFlushInterval", DefaultValue="00:00:01", IsRequired=true)>]
[<System.Configuration.TimeSpanValidator(MaxValueString="10675199.02:48:05.4775807", MinValueString="00:00:00")>]
member this.RegularFlushInterval : TimeSpan with get, set
Public Property RegularFlushInterval As TimeSpan
Wartość nieruchomości
Regularny czas 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.RegularFlushInterval = TimeSpan.MaxValue;
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue
Uwagi
Ta właściwość musi mieć wartość większą niż zero. Wartość może być nieskończona, ustawiając ją na MaxValue znaczniki. Nieprawidłowe wartości mogą spowodować wyjątek 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 .