DataCache.AddRegionLevelCallback Method (String, DataCacheOperations, DataCacheNotificationCallback)

 

Adds a cache notification callback for cache operations occurring on one specific region. Not supported in Windows Azure Shared Caching.

Namespace:   Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

Syntax

public DataCacheNotificationDescriptor AddRegionLevelCallback(
    string region,
    DataCacheOperations filter,
    DataCacheNotificationCallback clientCallback
)
public:
DataCacheNotificationDescriptor^ AddRegionLevelCallback(
    String^ region,
    DataCacheOperations filter,
    DataCacheNotificationCallback^ clientCallback
)
member AddRegionLevelCallback : 
        region:string *
        filter:DataCacheOperations *
        clientCallback:DataCacheNotificationCallback -> DataCacheNotificationDescriptor
Public Function AddRegionLevelCallback (
    region As String,
    filter As DataCacheOperations,
    clientCallback As DataCacheNotificationCallback
) As DataCacheNotificationDescriptor

Parameters

  • region
    Type: System.String

    The name of the region for which the specified item or region operations can trigger cache notifications.

Return Value

Type: Microsoft.ApplicationServer.Caching.DataCacheNotificationDescriptor

A DataCacheNotificationDescriptor object used to identify the cache notification callback.

Remarks

Use the DataCacheOperations enumeration in the filter parameter to specify what type of item operations you want to trigger cache notifications. Select more than one 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 operator in Visual Basic.

The clientCallback method you invoke with the cache notification must accept the same parameters as the DataCacheNotificationCallback delegate.

See Also

DataCache Class
Microsoft.ApplicationServer.Caching Namespace

Return to top