Share via


RuleSettings.MaxLimit Propiedad

Definición

Obtiene o establece el número máximo de veces que se provocan eventos del mismo tipo.

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

Valor de propiedad

Número máximo de veces que se provocan eventos del mismo tipo. El valor predeterminado es Int32.MaxValue.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad MaxLimit. Este ejemplo de código es parte de un ejemplo más grande proporcionado para la clase HealthMonitoringSection.

ruleSetting.MaxLimit = Int32.MaxValue;
ruleSetting.MaxLimit = Int32.MaxValue

Comentarios

Esta propiedad debe tener un valor mayor que cero. Los valores no válidos pueden provocar una excepción cuando se guarda la sección de configuración.

Esto representa el número máximo de veces que se generará un evento del mismo tipo. Por ejemplo, si el valor es 10, el evento se generará 10 veces y se omitirá después.

Se aplica a

Consulte también