Udostępnij za pośrednictwem


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

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 udostępnionego dla klasy HealthMonitoringSection.

bufferModeSetting.UrgentFlushThreshold = 1;
bufferModeSetting.UrgentFlushThreshold = 1

Uwagi

Ta właściwość musi mieć wartość większą niż zero i mniejszą niż 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 przez dostawców w kolekcji Providers według nazwy.

Dotyczy

Zobacz też