MemoryCacheElement.PollingInterval 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 une valeur qui indique l’intervalle de temps après lequel l’implémentation du cache compare la charge de mémoire actuelle par rapport aux limites absolues et en pourcentage de mémoire définies pour l’instance de cache.
public:
property TimeSpan PollingInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("pollingInterval", DefaultValue="00:02:00")]
public TimeSpan PollingInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("pollingInterval", DefaultValue="00:02:00")>]
member this.PollingInterval : TimeSpan with get, set
Public Property PollingInterval As TimeSpan
Valeur de propriété
Intervalle de temps après lequel l’implémentation du cache compare la charge de mémoire actuelle par rapport aux limites absolues et en pourcentage de mémoire définies pour l’instance de cache. La valeur par défaut est deux minutes.
- Attributs
Remarques
La PollingInterval propriété correspond à l’attribut pollingInterval de configuration de l’élément namedCaches . Les paramètres de cet attribut de configuration sont spécifiés dans le format HH:MM:SS et peuvent être lus à partir de l’attribut pollingInterval de configuration dans la configuration de l’application. Vous pouvez également passer la valeur lorsque la MemoryCache classe est initialisée.
Pour plus d’informations sur la configuration du cache, consultez <l’élémentnamedCaches> (Paramètres du cache).