System.Web.UI.DataSourceCacheExpiry Enumeration

Describes the way data cached using ASP.NET caching mechanisms expires when a time-out is set.

Syntax

public enum DataSourceCacheExpiry

Remarks

The System.Web.UI.DataSourceCacheExpiry enumeration describes how data cached by a data source control expires in the ASP.NET cache. An ASP.NET data source control caches data in the ASP.NET cache based on a specified time-out period, which is set using the CacheDuration property. The System.Web.UI.DataSourceCacheExpiry describes how this time-out setting is used. If the expiration policy is set to DataSourceCacheExpiry.Absolute, the cached data is discarded when the amount of time specified passes since the data was first cached. If the expiration policy is set to DataSourceCacheExpiry.Sliding, the cached data is discarded only when the cache entry has not been used for the amount of time specified.

Members

Member NameDescription
Absolute

Cached data expires when the amount of time specified by the CacheDuration property has passed since the data was first cached.

Sliding

Cached data expires only when the cache entry has not been used for the amount of time specified by the CacheDuration property.

Requirements

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