Class CacheEventArg
This object is received when an event is raised and delegate CacheDataNotificationCallback is executed. CacheEventArg contains the necessary information to identify the event and perform the actions necessary, accordingly. It inherits EventArg which is also a parent of CQEventArg. This class is consistent for both selective and general events.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public class CacheEventArg : EventArg
Properties
CacheItemRemovedReason
It specifies the reason for removal of cache item. Only applicable for ItemRemoved. Otherwise, the default value is DependencyChanged.
Declaration
public CacheItemRemovedReason CacheItemRemovedReason { get; }
Property Value
Type | Description |
---|---|
CacheItemRemovedReason | It specifies the reason for the item to be removed. |
Descriptor
It specifies the description of general events. Only applicable for general events, otherwise it will be null.
Declaration
public CacheEventDescriptor Descriptor { get; }
Property Value
Type | Description |
---|---|
CacheEventDescriptor | It contains the link necessary for registered delegate use and unregistration, as required. |