System.Web.Caching.Cache.NoSlidingExpiration Field

Used as the slidingExpiration parameter in an Cache.Insert(string, object) or Cache.Add(string, object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback) method call to disable sliding expirations. This field is read-only.

Syntax

public static readonly TimeSpan NoSlidingExpiration

Remarks

When used, this field sets the slidingExpiration parameter to the TimeSpan.Zero field, which has a constant value of zero. The cached item expires in accordance with the absoluteExpiration parameter associated with the Insert or Add method call.

Requirements

Namespace: System.Web.Caching
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0