MemoryCacheElement.PollingInterval 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,表示快取實作在此時間區間內將當前記憶體負載與為快取實例設定的絕對及百分比記憶體限制進行比較。
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
屬性值
快取實作在此時間區間內,將當前記憶體負載與為快取實例設定的絕對及百分比記憶體限制進行比較。 預設為兩分鐘。
- 屬性
備註
屬性 PollingInterval 對應 pollingInterval 於元素 namedCaches 的配置屬性。 此組態屬性的設定以格式 HH:MM:SS 指定,並可從 pollingInterval 應用程式設定中的組態屬性讀取。 或者,類別初始化時 MemoryCache 也可以傳遞該值。
欲了解更多如何配置快取的資訊,請參閱 <namedCaches> 元素(快取設定)。