DataCacheNotificationProperties Class

Specifies the notification settings for a cache client.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Dim instance As DataCacheNotificationProperties

public ref class DataCacheNotificationProperties
public class DataCacheNotificationProperties
public class DataCacheNotificationProperties

To use this class, assign an instance of it to the NotificationProperties property of the DataCacheFactoryConfiguration class. In order to use notifications, the target cache must have notifications enabled. This can be done in Windows PowerShell by using the New-Cache or Set-CacheConfig commands. Set the NotificationsEnabled parameter to true.

Notifications can be used for callbacks, such as a notification that an item has been removed from the cache. Notifications are also used to update locally cached items when the local cache invalidation policy is set to NotificationBased.

Note that the properties of this class are read-only. Because of this, you must use the overloaded constructor to assign values to the properties.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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