Export (0) Print
Expand All

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)

'Usage
Dim instance As DataCacheNotificationProperties

public 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.


System.Object
  Microsoft.ApplicationServer.Caching.DataCacheNotificationProperties

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
  2011-08-26
Show:
© 2014 Microsoft