ProfileSettings コンストラクター

定義

ProfileSettings クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
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

同じ型の 2 つのイベントが発生した時刻の間隔の最小長を指定する TimeSpan

次のコード例は、 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

同じ種類の 2 つのイベント間の最小間隔を指定する TimeSpan

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"))

こちらもご覧ください

適用対象