Επεξεργασία

Κοινή χρήση μέσω


CacheEntryUpdateArguments.UpdatedCacheItem Property

Definition

Gets or sets the value of CacheItem entry that is used to update the cache object.

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

Property Value

The cache entry to update in the cache object. The default is null.

Remarks

If you want to exchange a cache entry that is about to be removed for an updated cache entry, you must assign a CacheItem object to the UpdatedCacheItem property and assign a CacheItemPolicy object to the UpdatedCacheItemPolicy property. The CacheItem value must be a value other than null. Cache implementations will interpret a null value for the UpdatedCacheItem property as a notice that the current cache entry should be removed but not replaced.

Applies to