MemoryCache.PollingInterval MemoryCache.PollingInterval MemoryCache.PollingInterval MemoryCache.PollingInterval Property

定义

获取在缓存更新其内存统计信息之前需等待的最大时间量。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.

适用于

另请参阅