Share via


DataCacheErrorCode.NotificationNotSupported Field

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Cache notifications are not supported because the cache client is a simple client or the named cache has been created without notifications enabled; integer value equals 20.

Namespace: Microsoft.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)

Syntax

'Declaration
Public Const NotificationNotSupported As Integer
'Usage
Dim value As Integer

value = DataCacheErrorCode.NotificationNotSupported
public const int NotificationNotSupported
public:
literal int NotificationNotSupported
public static final int NotificationNotSupported
public const var NotificationNotSupported : int

Remarks

Only routing clients support cache notifications. For more information about the differences between routing clients and simple clients, see Cache Clients and Local Cache (Velocity). For more information about configuring a routing client, see How to: Get Started with a Routing Client (XML) (Velocity) or How to: Get Started with a Routing Client (Code) (Velocity).

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

DataCacheErrorCode Class
DataCacheErrorCode Members
Microsoft.Data.Caching Namespace