DataCache.RemoveCallback Method
Removes a cache notification callback.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)
Usage
'Usage
Dim instance As DataCache
Dim nd As DataCacheNotificationDescriptor
instance.RemoveCallback(nd)
Syntax
'Declaration
Public MustOverride Sub RemoveCallback ( _
nd As DataCacheNotificationDescriptor _
)
public abstract void RemoveCallback (
DataCacheNotificationDescriptor nd
)
public:
virtual void RemoveCallback (
DataCacheNotificationDescriptor^ nd
) abstract
public abstract void RemoveCallback (
DataCacheNotificationDescriptor nd
)
public abstract 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.
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Visual Studio 2010 and later, .NET Framework 4
Target Platforms
Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
Change History
See Also
Reference
DataCache Class
DataCache Members
Microsoft.ApplicationServer.Caching Namespace
ff425062(v=azure.10).md 2011-08-26