This method Unregisters a custom callback that is fired on change in dataset of a continous query

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 UnRegisterNotification(
	QueryDataNotificationCallback callback,
	EventType eventType
)
Visual Basic
Public Sub UnRegisterNotification ( 
	callback As QueryDataNotificationCallback,
	eventType As EventType
)
Visual C++
public:
void UnRegisterNotification(
	QueryDataNotificationCallback^ callback, 
	EventType eventType
)

Parameters

callback
Type: Alachisoft.NCache.Web.Caching..::..QueryDataNotificationCallback
A delegate to register your custom method with
eventType
Type: Alachisoft.NCache.Runtime.Events..::..EventType
Describes whether the event is to be raised on Item Added, Updated or Removed

Examples

Lets consider we created an ItemCallback
 Copy imageCopy
ItemCallback(string key, CacheEventArg e)
{
   ...
}
Uregister your notification callback
 Copy imageCopy
cQ.RegisterNotification(new QueryDataNotificationCallback(ItemCallback),EventType.ItemAdded);

See Also