Class DataTypeEventArg
This object is received when a collection event is raised and a delegate DataTypeDataNotificationCallback is executed. This class contains necessary information to identify the event and perform necessary actions accordingly.
Inheritance
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class DataTypeEventArg
              Constructors
DataTypeEventArg(String, EventType, DistributedDataType, Object, Object)
Constructor that initializes all the properties of the class DataTypeEventArg.
Declaration
public DataTypeEventArg(string cacheName, EventType eventType, DistributedDataType dataType, object dataTypeItem, object oldDataTypeItem)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | cacheName | Name of cache, the collection event is to be registered against.  | 
                  
| EventType | eventType | Unique, user specified key attribute for the item added to NCache on client registration. Event key is specific to the application. Each client of the application will use the same event key while calling NCache's extension method.  | 
                  
| DistributedDataType | dataType | The type of collection, pertaining to DistributedDataType, to be returned on the fire of a collection event.  | 
                  
| System.Object | dataTypeItem | Value of collection item if the respective filter is set.  | 
                  
| System.Object | oldDataTypeItem | Old value of collection item if the respective filter is set.  | 
                  
Properties
CacheName
Name of the cache the collection event is registered against.
Declaration
public string CacheName { get; }
              Property Value
| Type | Description | 
|---|---|
| System.String | Name of the cache.  | 
                  
CollectionItem
Contains the current value if collection event was registered against Data.
Declaration
public object CollectionItem { get; }
              Property Value
| Type | Description | 
|---|---|
| System.Object | Actually affected item.  | 
                  
CollectionType
The type of collection, pertaining to DistributedDataType, returned on the fire of a collection event.
Declaration
public DistributedDataType CollectionType { get; }
              Property Value
| Type | Description | 
|---|---|
| DistributedDataType | Enum that defines the data type.  | 
                  
EventType
This property specifies the type of event to be registered by the user. Event types are specified at the time of notification registration.
Declaration
public EventType EventType { get; }
              Property Value
| Type | Description | 
|---|---|
| EventType | Returns an EventType enum which specifies the type of event to be registered by the user. Event types are specified at the time of notification registration.  | 
                  
OldCollectionItem
Contains the previous value if the collection event was registered against Data.
Declaration
public object OldCollectionItem { get; }
              Property Value
| Type | Description | 
|---|---|
| System.Object | Old object on which the event has occurred.  |