Property AbsoluteExpiration
AbsoluteExpiration
The time at which the added object expires and is removed from the cache.
Declaration
public DateTime AbsoluteExpiration { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | The default value is Cache.NoAbsoluteExpiration |
Remarks
You cannot set both sliding and absolute expirations on the same cached item. If you do so, an System.ArgumentException is thrown when you will try to add or insert the CacheItem.