다음을 통해 공유


RuleSettings.MaxLimit 속성

정의

동일한 형식의 이벤트가 발생하는 최대 횟수를 가져오거나 설정합니다.

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

속성 값

동일한 형식의 이벤트가 발생하는 최대 횟수입니다. 기본값은 Int32.MaxValue입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 MaxLimit . 이 코드 예제는 클래스에 제공된 더 큰 예제의 HealthMonitoringSection 일부입니다.

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

설명

이 속성의 값은 0보다 커야 합니다. 잘못된 값으로 인해 구성 섹션이 저장될 때 예외가 throw될 수 있습니다.

이는 동일한 형식의 이벤트가 발생하는 최대 횟수를 나타냅니다. 예를 들어 값이 있으면 10이벤트가 10번 발생하고 그 후에 무시됩니다.

적용 대상

추가 정보