ProfileSettings.MinInterval プロパティ

定義

同じ型の 2 つのイベント間の最小間隔を取得または設定します。

public:
 property TimeSpan MinInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("minInterval", DefaultValue="00:00:00")]
public TimeSpan MinInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("minInterval", DefaultValue="00:00:00")>]
member this.MinInterval : TimeSpan with get, set
Public Property MinInterval As TimeSpan

プロパティ値

同じ種類の 2 つのイベント間の最小間隔を指定する TimeSpan 。 既定値は、Zero です。

属性

次のコード例は、 MinInterval プロパティの使用方法を示しています。 このコード例は、 HealthMonitoringSection クラスに提供されるより大きな例の一部です。

profileSetting.MinInterval = TimeSpan.Parse("00:01:00");
profileSetting.MinInterval = TimeSpan.Parse("00:01:00")

注釈

MaxValueに設定することで、値を無限にすることができます。 無効な値を指定すると、構成セクションが保存されるときに例外が発生する可能性があります。

値が Zeroの場合、最小間隔はありません。

適用対象

こちらもご覧ください