Indicates whether the cache entry should be deleted if it has not been accessed in a given span of time.
public TimeSpan SlidingExpiration {get; set;}
'Declaration
Public Property SlidingExpiration As TimeSpan
'Usage
Dim instance As CacheItemPolicy
Dim value As TimeSpan
instance.SlidingExpiration = value
value = instance.SlidingExpiration
public long getSlidingExpiration()
public void setSlidingExpiration(long value)
public:
property TimeSpan SlidingExpiration {
TimeSpan get();
void set ( TimeSpan value);
}
Property Value
The time span which the cache entry must be accessed before the cache entry is deleted from the cache. The default is
ObjectCache.NoSlidingExpiration which means that the item should not be expired based on a time span.