CacheItemPolicy.AbsoluteExpiration 属性

定义

获取或设置一个值,该值指示是否应在指定的时间点逐出缓存项。Gets or sets a value that indicates whether a cache entry should be evicted at a specified point in time.

public:
 property DateTimeOffset AbsoluteExpiration { DateTimeOffset get(); void set(DateTimeOffset value); };
public DateTimeOffset AbsoluteExpiration { get; set; }
member this.AbsoluteExpiration : DateTimeOffset with get, set
Public Property AbsoluteExpiration As DateTimeOffset

属性值

DateTimeOffset

缓存项逐出的时间点。The point in time at which a cache entry is evicted. 默认值为 InfiniteAbsoluteExpiration,这意味着该项未过期。The default value is InfiniteAbsoluteExpiration, meaning that the entry does not expire.

适用于