BufferModeSettings.UrgentFlushThreshold Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
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 .