Performs search on the
Cache based on the specified
ContinuousQuery and registers the notifications.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
Examples
CopyC#
string queryString = "SELECT MyApplication.Employee WHERE this.Salary > ?";
Hashtable values = new Hashtable();
values.Add("Salary", 50000);
ContinuousQuery query = new ContinuousQuery(queryString, values);
query.RegisterAddNotification(new ContinuousQueryItemAddedCallback(query_ItemAdded));
query.RegisterUpdateNotification(new ContinuousQueryItemUpdatedCallback(query_ItemUpdated));
query.RegisterRemoveNotification(new ContinuousQueryItemRemovedCallback(query_ItemRemoved));
IDictionary results = cache.SearchEntriesCQ(query);
See Also