Share via


ProfileSettings.MinInterval Propriété

Définition

Obtient ou définit l'intervalle minimum entre deux événements du même type.

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

Valeur de propriété

TimeSpan qui spécifie l'intervalle minimum entre deux événements du même type. La valeur par défaut est Zero.

Attributs

Exemples

L'exemple de code suivant montre comment utiliser la propriété MinInterval. Cet exemple de code fait partie d’un exemple plus grand fourni pour la HealthMonitoringSection classe .

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

Remarques

La valeur peut être rendue infinie en la définissant sur MaxValue. Des valeurs non valides peuvent provoquer une exception lorsque la section de configuration est enregistrée.

Si la valeur est Zero, il n’existe aucun intervalle minimal.

S’applique à

Voir aussi