ProfileSettings.MinInterval Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit l’intervalle minimal 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é
Qui TimeSpan spécifie l’intervalle minimal 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 MinInterval propriété. 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. Les valeurs non valides peuvent provoquer une exception lorsque la section de configuration est enregistrée.
Si la valeur est Zero, il n’y a pas d’intervalle minimal.