共用方式為


BufferModeSettings.MaxBufferThreads 屬性

定義

取得或設定同時可啟用的最大衝洗執行緒數量。

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

屬性值

同時可啟動的最大沖洗線程數。 預設值為 1。

屬性

範例

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

bufferModeSetting.MaxBufferThreads = 1;
bufferModeSetting.MaxBufferThreads = 1

備註

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

適用於

另請參閱