Class EventArg
Parent of CQEventArg and CacheEventArg. Contains the necessary information related to the event being raised.
Inheritance
System.Object
EventArg
Assembly: Alachisoft.NCache.Client.dll
Syntax
public abstract class EventArg
Properties
CacheName
Name of the cache against which the event is raised.
Declaration
public string CacheName { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the cache. |
EventType
Event Type against which the event is raised.
Declaration
public EventType EventType { get; }
Property Value
Type | Description |
---|---|
EventType | Event Type against which the event is raised. |
Item
Contains the item if the event was registered against Metadata or DataWithMetadata.
Declaration
public EventCacheItem Item { get; }
Property Value
Type | Description |
---|---|
EventCacheItem | It contains basic information of an item present in the cache. |
OldItem
Only applicable for ItemUpdated. Otherwise, it will be null.
Declaration
public EventCacheItem OldItem { get; }
Property Value
Type | Description |
---|---|
EventCacheItem | It contains basic information of an item present in the cache. |