System.Web.UI.WebControls.XmlDataSource.CacheExpirationPolicy Property

Gets or sets the cache expiration policy that is combined with the cache duration to describe the caching behavior of the cache that the data source control uses.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.DataSourceCacheExpiry.Absolute)]
public virtual System.Web.UI.DataSourceCacheExpiry CacheExpirationPolicy { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The behavior of the cache is governed by a combination of the XmlDataSource.CacheDuration and XmlDataSource.CacheExpirationPolicy settings. If the XmlDataSource.CacheExpirationPolicy is set to System.Web.UI.DataSourceCacheExpiry.Absolute, the System.Web.UI.WebControls.XmlDataSource caches data on the first data retrieval operation, holds it in memory for the amount of time specified by XmlDataSource.CacheDuration, and invalidates it after the time has lapsed. The cache is then refreshed upon the next operation. If the XmlDataSource.CacheExpirationPolicy is set to System.Web.UI.DataSourceCacheExpiry.Sliding, the data source control caches data on the first data retrieval operation, but resets the time window that it holds the cache for upon each subsequent operation. The cache will expire only if there is no activity for a time equal to the XmlDataSource.CacheDuration since the last data retrieval.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0