Property CreationTime
CreationTime
Specifies when the item was added in cache for the first time.
Declaration
public DateTime CreationTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
Examples
Example prints creation time of a cache item.
CacheItem item = cache.GetCacheItem("Product0");
Console.WriteLine("Creation Time: {0}", item.CreationTime.ToString());