Method RegisterClearNotification
RegisterClearNotification(ContinuousQueryClearCallback)
This method registers a custom callback that is fired if dataset of a continuous query is cleared
Declaration
public void RegisterClearNotification(ContinuousQueryClearCallback callback)
Parameters
Type | Name | Description |
---|---|---|
ContinuousQueryClearCallback | callback | A delegate to register your custom method with |
Examples
/// First create an CacheClearedCallback
public static void CacheCleared()
{
...
}
Then declare your continuous query
ContinuousQuery cQ=new ContinuousQuery(query,Hashtable vals);
Then register your notification callback
cQ.RegisterClearNotification(new ContinuousQueryClearCallback(CacheCleared));