CacheEntryUpdateArguments.UpdatedCacheItemPolicy Property

Definition

Gets or sets the cache eviction or expiration policy of the CacheItem entry that is updated.

public:
 property System::Runtime::Caching::CacheItemPolicy ^ UpdatedCacheItemPolicy { System::Runtime::Caching::CacheItemPolicy ^ get(); void set(System::Runtime::Caching::CacheItemPolicy ^ value); };
public System.Runtime.Caching.CacheItemPolicy UpdatedCacheItemPolicy { get; set; }
member this.UpdatedCacheItemPolicy : System.Runtime.Caching.CacheItemPolicy with get, set
Public Property UpdatedCacheItemPolicy As CacheItemPolicy

Property Value

The cache eviction or expiration policy of the cache item that was updated. The default is null.

Remarks

If you want to replace a cache entry that is about to be removed with an updated cache entry, you can optionally assign a CacheItemPolicy object to the UpdatedCacheItemPolicy property. The CacheItemPolicy object enables you to specify cache policy (such as expiration details) for the updated cache entry.

For more information about how to replace a removed cache entry by using an updated one, see the CacheEntryUpdateArguments class overview and the UpdatedCacheItem property.

Applies to

See also