Partager via


CacheItem.HasExpired Method

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.

Evaluates all cacheItemExpirations associated with this cache item to determine if it should be considered expired. Evaluation stops as soon as any expiration returns true.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
PublicFunctionHasExpiredAs Boolean
public bool HasExpired()
public:
bool HasExpired()
publicfunctionHasExpired() : boolean

Return Value

True if item should be considered expired, according to policies defined in this item's cacheItemExpirations.

See Also

CacheItem Class

Microsoft.Practices.EnterpriseLibrary.Caching Namespace

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.