Bagikan melalui


BufferModeSettings.UrgentFlushThreshold Properti

Definisi

Mendapatkan atau mengatur jumlah peristiwa yang dapat di-buffer sebelum flush dipicu.

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

Nilai Properti

Jumlah peristiwa yang dapat di-buffer sebelum flush dipicu.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan MaxBufferSize properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk HealthMonitoringSection kelas .

bufferModeSetting.UrgentFlushThreshold = 1;
bufferModeSetting.UrgentFlushThreshold = 1

Keterangan

Properti ini harus memiliki nilai yang lebih besar dari nol dan kurang dari atau sama dengan nilai MaxBufferSize properti. Nilai yang tidak valid dapat menyebabkan pengecualian ketika bagian konfigurasi disimpan.

Nilai default bervariasi berdasarkan penyedia. Objek BufferModeSettings dalam BufferModes koleksi disebut berdasarkan nama oleh penyedia dalam Providers koleksi.

Berlaku untuk

Lihat juga