Udostępnij za pośrednictwem


CacheItemPolicy.AbsoluteExpiration Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

Gets or sets a value that indicates whether a cache entry should be evicted after a specified duration.

Namespace: Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching
Assembly: Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Caching.Silverlight.dll) Version: 5.0.505.0

Syntax

public DateTimeOffset AbsoluteExpiration { get; set; }
'Declaration
Public Property AbsoluteExpiration As DateTimeOffset
    Get
    Set
public:
property DateTimeOffset AbsoluteExpiration {
    DateTimeOffset get ();
    void set (DateTimeOffset value);
}

Return Value

The period of time that must pass before a cache entry is evicted. The default value is System.Runtime.Caching.ObjectCache.InfiniteAbsoluteExpiration, meaning that the entry does not expire.

See Also

CacheItemPolicy Class

Microsoft.Practices.EnterpriseLibrary.Caching.Runtime.Caching Namespace