Partager via


BufferModeSettings.MaxBufferThreads Propriété

Définition

Obtient ou définit le nombre maximal de threads de vidage qui peuvent être actifs à la fois.

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

Valeur de propriété

Nombre maximal de threads de vidage pouvant être actifs à la fois. La valeur par défaut est 1.

Attributs

Exemples

L’exemple de code suivant montre comment utiliser la MaxBufferSize propriété. Cet exemple de code fait partie d’un exemple plus grand fourni pour la HealthMonitoringSection classe.

bufferModeSetting.MaxBufferThreads = 1;
bufferModeSetting.MaxBufferThreads = 1

Remarques

Cette propriété doit avoir une valeur supérieure à zéro. Les valeurs non valides peuvent entraîner la levée d’une exception lorsque la section de configuration est enregistrée.

S’applique à

Voir aussi