BufferModeSettings.UrgentFlushThreshold Właściwość

Definicja

Pobiera lub ustawia liczbę zdarzeń, które można buforować przed wyzwoleniem opróżnienia.

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

Wartość właściwości

Int32

Liczba zdarzeń, które można buforować przed wyzwoleniem opróżnienia.

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.UrgentFlushThreshold = 1;
bufferModeSetting.UrgentFlushThreshold = 1

Uwagi

Ta właściwość musi mieć wartość większą niż zero i mniejszą lub równą wartości MaxBufferSize właściwości. 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 .

Dotyczy

Zobacz też