RuleSettings 생성자

정의

RuleSettings 클래스의 새 인스턴스를 초기화합니다.

오버로드

RuleSettings(String, String, String)

직접 지정하는 이름, 이벤트 이름 및 공급자를 제외하고는 기본 설정을 사용하여 RuleSettings 클래스의 새 인스턴스를 초기화합니다.

RuleSettings(String, String, String, String, Int32, Int32, TimeSpan)

RuleSettings 클래스의 값을 제외한 모든 값을 지정하여 Custom 클래스의 새 인스턴스를 초기화합니다.

RuleSettings(String, String, String, String, Int32, Int32, TimeSpan, String)

모든 값을 지정하여 BufferModeSettings 클래스의 새 인스턴스를 초기화합니다.

RuleSettings(String, String, String)

직접 지정하는 이름, 이벤트 이름 및 공급자를 제외하고는 기본 설정을 사용하여 RuleSettings 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleSettings(System::String ^ name, System::String ^ eventName, System::String ^ provider);
public RuleSettings (string name, string eventName, string provider);
new System.Web.Configuration.RuleSettings : string * string * string -> System.Web.Configuration.RuleSettings
Public Sub New (name As String, eventName As String, provider As String)

매개 변수

name
String

만들 RuleSettings 개체의 이름입니다.

eventName
String

이 규칙을 적용할 EventMappingSettings 개체의 이름입니다.

provider
String

이 규칙을 적용할 ProviderSettings 개체의 이름입니다.

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다는 RuleSettings 생성자입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 HealthMonitoringSection 클래스입니다.

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("All Errors Default", 
    "All Errors", "EventLogProvider"));
' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("All Errors Default", _
    "All Errors", "EventLogProvider"))

설명

다음 표에서이 생성자에 사용 되는 기본 설정을 보여 줍니다.

속성 기본값
Custom 빈 문자열("")입니다.
MaxLimit MaxValue.
MinInstances 1.
MinInterval 틱 수가 0입니다.
Profile 빈 문자열("")입니다.

추가 정보

적용 대상

RuleSettings(String, String, String, String, Int32, Int32, TimeSpan)

RuleSettings 클래스의 값을 제외한 모든 값을 지정하여 Custom 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleSettings(System::String ^ name, System::String ^ eventName, System::String ^ provider, System::String ^ profile, int minInstances, int maxLimit, TimeSpan minInterval);
public RuleSettings (string name, string eventName, string provider, string profile, int minInstances, int maxLimit, TimeSpan minInterval);
new System.Web.Configuration.RuleSettings : string * string * string * string * int * int * TimeSpan -> System.Web.Configuration.RuleSettings
Public Sub New (name As String, eventName As String, provider As String, profile As String, minInstances As Integer, maxLimit As Integer, minInterval As TimeSpan)

매개 변수

name
String

만들 RuleSettings 개체의 이름입니다.

eventName
String

이 규칙을 적용할 EventMappingSettings 개체의 이름입니다.

provider
String

이 규칙을 적용할 ProviderSettings 개체의 이름입니다.

profile
String

이 규칙을 적용할 ProfileSettings 개체의 이름입니다.

minInstances
Int32

공급자에게 발생하기 전에 같은 형식의 이벤트가 발생할 수 있는 최소 횟수입니다.

maxLimit
Int32

같은 형식의 이벤트가 발생할 수 있는 최대 횟수입니다.

minInterval
TimeSpan

형식이 같은 두 이벤트 사이의 최소 시간 간격입니다.

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다는 RuleSettings 생성자입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 HealthMonitoringSection 클래스입니다.

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Default",
    "Failure Audits", "EventLogProvider", "Default", 1, Int32.MaxValue,
    new TimeSpan(0, 1, 0)));
' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Default", _
    "Failure Audits", "EventLogProvider", "Default", 1, Int32.MaxValue, _
    new TimeSpan(0, 1, 0)))

설명

다음 표에서이 생성자에 사용 되는 기본 설정을 보여 줍니다.

속성 기본값
Custom 빈 문자열("")입니다.

추가 정보

적용 대상

RuleSettings(String, String, String, String, Int32, Int32, TimeSpan, String)

모든 값을 지정하여 BufferModeSettings 클래스의 새 인스턴스를 초기화합니다.

public:
 RuleSettings(System::String ^ name, System::String ^ eventName, System::String ^ provider, System::String ^ profile, int minInstances, int maxLimit, TimeSpan minInterval, System::String ^ custom);
public RuleSettings (string name, string eventName, string provider, string profile, int minInstances, int maxLimit, TimeSpan minInterval, string custom);
new System.Web.Configuration.RuleSettings : string * string * string * string * int * int * TimeSpan * string -> System.Web.Configuration.RuleSettings
Public Sub New (name As String, eventName As String, provider As String, profile As String, minInstances As Integer, maxLimit As Integer, minInterval As TimeSpan, custom As String)

매개 변수

name
String

만들 RuleSettings 개체의 이름입니다.

eventName
String

이 규칙을 적용할 EventMappingSettings 개체의 이름입니다.

provider
String

이 규칙을 적용할 ProviderSettings 개체의 이름입니다.

profile
String

이 규칙을 적용할 ProfileSettings 개체의 이름입니다.

minInstances
Int32

공급자에게 발생하기 전에 같은 형식의 이벤트가 발생할 수 있는 최소 횟수입니다.

maxLimit
Int32

같은 형식의 이벤트가 발생할 수 있는 최대 횟수입니다.

minInterval
TimeSpan

형식이 같은 두 이벤트 사이의 최소 시간 간격입니다.

custom
String

IWebEventCustomEvaluator를 구현하는 사용자 지정 클래스의 정규화된 형식입니다.

예제

다음 코드 예제를 사용 하는 방법을 보여 줍니다는 RuleSettings 생성자입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 HealthMonitoringSection 클래스입니다.

// Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Custom",
    "Failure Audits", "EventLogProvider", "Custom", 1, Int32.MaxValue,
    new TimeSpan(0, 1, 0), "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"));
' Add a RuleSettings object to the Rules collection property.
healthMonitoringSection.Rules.Add(new RuleSettings("Failure Audits Custom", _
    "Failure Audits", "EventLogProvider", "Custom", 1, Int32.MaxValue, _
    new TimeSpan(0, 1, 0), "MyEvaluators.MyCustomeEvaluator2, MyCustom.dll"))

설명

이 생성자에 대 한 모든 설정을 제공 해야 합니다.

추가 정보

적용 대상