DataCacheOperations Enumeration

An enumeration used to specify specific item or region events that can trigger a cache notification.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Core (in microsoft.applicationserver.caching.core.dll)

Dim instance As DataCacheOperations

public enum DataCacheOperations
/** @attribute FlagsAttribute() */ 
public enum DataCacheOperations
public enum DataCacheOperations

Member nameDescription
AddItemIndicates that an object was added to the cache.
ClearRegionIndicates that a region in the cache was cleared with the ClearRegion method.
CreateRegionIndicates that a region in the cache was created with the CreateRegion method. 
RemoveItemIndicates that an object was removed from the cache. 
RemoveRegionIndicates that a region in the cache was removed with the RemoveRegion method. 
ReplaceItemIndicates that an object was replaced in the cache. 

This enumeration is used in the add callback method's filter parameter to specify one or more cache operations that can trigger a cache notification. For more information, see Cache Notifications (Velocity).

Select more than one DataCacheOperation enumeration by separating the enumerations with the binary OR operator to perform a bitwise OR. To do this, use the | character in C#, and the Or character in Visual Basic. For more information, see How to: Add a Cache Notification Callback (Velocity).

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