שתף באמצעות


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

'Usage
Dim instance As DataCacheNotificationProperties

Syntax

'Declaration
Public Class DataCacheNotificationProperties
public class DataCacheNotificationProperties
public ref class DataCacheNotificationProperties
public class DataCacheNotificationProperties
public class DataCacheNotificationProperties

Remarks

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.

Inheritance Hierarchy

System.Object
  Microsoft.ApplicationServer.Caching.DataCacheNotificationProperties

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

See Also

Reference

DataCacheNotificationProperties Members
Microsoft.ApplicationServer.Caching Namespace

Other Resources

Cache Notifications
Using Cache Notifications (AppFabric Caching Features)

  2011-08-26