共用方式為


BufferModeSettings.MaxFlushSize 屬性

定義

取得或設定每次同花最多事件數。

public:
 property int MaxFlushSize { int get(); void set(int value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))]
[System.Configuration.ConfigurationProperty("maxFlushSize", DefaultValue=2147483647, IsRequired=true)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxFlushSize { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteIntConverter))>]
[<System.Configuration.ConfigurationProperty("maxFlushSize", DefaultValue=2147483647, IsRequired=true)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxFlushSize : int with get, set
Public Property MaxFlushSize As Integer

屬性值

每次同花的最大事件數。

屬性

範例

以下程式碼範例說明如何使用該 MaxBufferSize 屬性。 此程式碼範例是本類別更大範例 HealthMonitoringSection 的一部分。

bufferModeSetting.MaxFlushSize = 24;
bufferModeSetting.MaxFlushSize = 24

備註

此性質必須大於零。 若值無效,則在儲存設定區段時可能會拋出異常。

預設值會依提供者而異。 BufferModeSettings集合中的BufferModes物件由集合中的Providers提供者以名稱來稱呼。

適用於

另請參閱