Unregisters a cache level event that may have been registered

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 override void UnRegisterCacheNotification(
	CacheEventDescriptor discriptor
)
Visual Basic
Public Overrides Sub UnRegisterCacheNotification ( 
	discriptor As CacheEventDescriptor
)
Visual C++
public:
virtual void UnRegisterCacheNotification(
	CacheEventDescriptor^ discriptor
) override

Parameters

discriptor
Type: Alachisoft.NCache.Web.Caching..::..CacheEventDescriptor
The descriptor returned when the general event was registered

Examples

Let us consider you registered an event against a cache
 Copy imageCopy
Cache cache = NCache.InitializeCache("myCache");
CacheEventDescriptor eDescriptor=cache.RegisterCacheNotification(new CacheDataNotificationCallback(ItemCallback), EventType.ItemAdded, EventDataFilter.None);
Now, Unregister this event by using the CacheEventDescriptor returned by regitering the event
 Copy imageCopy
cache.UnRegisterCacheNotification(eDescriptor);

See Also