|
Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.7
|
| Leadtools.Caching Assembly > Leadtools.Caching Namespace > ObjectCache Class : CacheItemExpiring Event |
public event EventHandler<CacheItemExpiringEventArgs> CacheItemExpiring
'Declaration
Public Event CacheItemExpiring As EventHandler(Of CacheItemExpiringEventArgs)
'Usage
Dim instance As ObjectCache Dim handler As EventHandler(Of CacheItemExpiringEventArgs) AddHandler instance.CacheItemExpiring, handler
public abstract CacheItemExpiringEvent cacheItemExpiring()
public: event EventHandler<CacheItemExpiringEventArgs^>^ CacheItemExpiring
The event handler receives an argument of type CacheItemExpiringEventArgs containing data related to this event. The following CacheItemExpiringEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Abort | Indicates whether the operation should be aborted. ![]() ![]() |
| Key | The expiring item key. ![]() ![]() |
| RegionName | The expiring item region name. ![]() ![]() |
The ObjectCache.CacheItemExpiring event occurs when an item has expired and is about to be removed from the cache. This event will receive an object of type CacheItemExpiringEventArgs populated as follows:
| Member | Value |
|---|---|
| CacheItemExpiringEventArgs.Key |
The expiring item key. |
| CacheItemExpiringEventArgs.RegionName |
The expiring item region name. |
| CacheItemExpiringEventArgs.Abort |
Allows the user to abort this operation. Resulting on the item being left in the cache. |