Share via


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

備註

這個屬性的值必須大於零。 不正確值可能會導致儲存組態區段時擲回例外狀況。

適用於

另請參閱