This method registers a custom callback that is fired if dataset of a continous query is cleared

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public void RegisterClearNotification(
	ContinuousQueryClearCallback callback
)
Visual Basic
Public Sub RegisterClearNotification ( 
	callback As ContinuousQueryClearCallback
)
Visual C++
public:
void RegisterClearNotification(
	ContinuousQueryClearCallback^ callback
)

Parameters

callback
Type: Alachisoft.NCache.Web.Caching..::..ContinuousQueryClearCallback
A delegate to register your custom method with

Examples

/// First create an CacheClearedCallback
 Copy imageCopy
public static void CacheCleared()
 {
   ...
 }
Then declare your continous query
 Copy imageCopy
ContinuousQuery cQ=new ContinuousQuery(query,Hashtable vals);
Then register your notification callback
 Copy imageCopy
cQ.RegisterClearNotification(new ContinuousQueryClearCallback(CacheCleared));

See Also