MemoryCache.PollingInterval 屬性

定義

取得快取更新其記憶體統計資料之前的最多所需時間。Gets the maximum time after which the cache updates its memory statistics.

public:
 property TimeSpan PollingInterval { TimeSpan get(); };
public TimeSpan PollingInterval { get; }
member this.PollingInterval : TimeSpan
Public ReadOnly Property PollingInterval As TimeSpan

屬性值

記憶體統計資料更新前所需的最長時間,The maximum time that can occur before memory statistics are updated.

備註

您可以在應用程式佈建檔中指定 PollingInterval 屬性的設定。The settings for the PollingInterval property can be specified in the application configuration file. 或者,也可以在初始化 MemoryCache 類別時傳遞。Alternatively they can be passed when the MemoryCache class is initialized. 如需如何設定此屬性的詳細資訊,請參閱<namedCaches> 元素(快取設定)For more information about how to configure this property, see <namedCaches> Element (Cache Settings). 如需如何在初始化 MemoryCache 類別時設定屬性的詳細資訊,請參閱 MemoryCache.MemoryCache(String, NameValueCollection) 方法。For more information about how to configure the property when the MemoryCache class is being initialized, see the MemoryCache.MemoryCache(String, NameValueCollection) method.

適用於

另請參閱