DataCache.RemoveCallback Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Removes a cache notification callback.
Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Overridable Sub RemoveCallback ( _
nd As DataCacheNotificationDescriptor _
)
'Usage
Dim instance As DataCache
Dim nd As DataCacheNotificationDescriptor
instance.RemoveCallback(nd)
public virtual void RemoveCallback (
DataCacheNotificationDescriptor nd
)
public:
virtual void RemoveCallback (
DataCacheNotificationDescriptor^ nd
)
public void RemoveCallback (
DataCacheNotificationDescriptor nd
)
public function RemoveCallback (
nd : DataCacheNotificationDescriptor
)
Parameters
- nd
The DataCacheNotificationDescriptor object that identifies the callback that should be removed.
Remarks
Once added, your application will continue to receive cache notifications until it removes the callback. To identify a notification, this method requires the corresponding DataCacheNotificationDescriptor object that was returned when you added the callback. To facilitate this requirement, declare your DataCacheNotificationDescriptor object at a scope that is accessible to the code in your application that adds the callback and the code in your application that removes the callback. For more information, see How to: Remove a Cache Notification Callback (Velocity).
Note
In order for your application to use notifications, you need to enable them on a named cache. Use the notificationsEnabled
parameter with the New-Cache
or Set-CacheConfig
commands. For more information, see Cache Administration with PowerShell (Velocity).
See Also
Reference
DataCache Class
DataCache Members
Microsoft.Data.Caching Namespace