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