ProfileSettings 생성자

정의

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

오버로드

Name Description
ProfileSettings(String)

ProfileSettings 클래스의 새 인스턴스를 초기화합니다. 클래스의 새 인스턴스에 대해 지정된 이름을 사용합니다.

ProfileSettings(String, Int32, Int32, TimeSpan)

클래스의 새 인스턴스에 ProfileSettings 대해 지정된 설정을 사용하여 클래스의 새 인스턴스를 초기화합니다.

ProfileSettings(String, Int32, Int32, TimeSpan, String)

클래스의 새 인스턴스에 BufferModeSettings 대해 지정된 설정을 사용하여 클래스의 새 인스턴스를 초기화합니다.

ProfileSettings(String)

ProfileSettings 클래스의 새 인스턴스를 초기화합니다. 클래스의 새 인스턴스에 대해 지정된 이름을 사용합니다.

public:
 ProfileSettings(System::String ^ name);
public ProfileSettings(string name);
new System.Web.Configuration.ProfileSettings : string -> System.Web.Configuration.ProfileSettings
Public Sub New (name As String)

매개 변수

name
String

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

예제

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

// Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Default"));
' Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Default"))

설명

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

재산 기본값
Custom 빈 문자열("")입니다.
MaxLimit MaxValue;
MinInstances 1.
MinInterval Zero;

추가 정보

적용 대상

ProfileSettings(String, Int32, Int32, TimeSpan)

클래스의 새 인스턴스에 ProfileSettings 대해 지정된 설정을 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

name
String

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

minInstances
Int32

이벤트가 공급자에게 발생하기 전의 최소 이벤트 발생 횟수입니다.

maxLimit
Int32

동일한 형식의 이벤트가 발생하는 최대 횟수입니다.

minInterval
TimeSpan

TimeSpan 동일한 형식의 두 이벤트가 발생하는 시간 사이의 최소 간격 길이를 지정하는 A입니다.

예제

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

// Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Critical", 
    1, 1024, new TimeSpan(0, 0, 00)));
' Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Critical",  _
    1, 1024, new TimeSpan(0, 0, 00)))

설명

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

재산 기본값
Custom 빈 문자열("")입니다.

추가 정보

적용 대상

ProfileSettings(String, Int32, Int32, TimeSpan, String)

클래스의 새 인스턴스에 BufferModeSettings 대해 지정된 설정을 사용하여 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

name
String

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

minInstances
Int32

이벤트가 공급자에게 발생하기 전의 최소 이벤트 발생 횟수입니다.

maxLimit
Int32

동일한 형식의 이벤트가 발생하는 최대 횟수입니다.

minInterval
TimeSpan

TimeSpan 동일한 형식의 두 이벤트 사이의 최소 간격을 지정하는 A입니다.

custom
String

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

예제

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

// Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Targeted", 
    1, Int32.MaxValue, new TimeSpan(0, 0, 10), 
    "MyEvaluators.MyTargetedEvaluator, MyCustom.dll"));
' Add a ProfileSettings object to the Profiles collection property.
healthMonitoringSection.Profiles.Add(new ProfileSettings("Targeted", _
    1, Int32.MaxValue, new TimeSpan(0, 0, 10), _
    "MyEvaluators.MyTargetedEvaluator, MyCustom.dll"))

추가 정보

적용 대상