Share via


DataCacheItem.Version Property

 

The version of the cached object.

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

Syntax

public DataCacheItemVersion Version { get; }
public:
property DataCacheItemVersion^ Version {
    DataCacheItemVersion^ get();
}
member Version : DataCacheItemVersion with get
Public ReadOnly Property Version As DataCacheItemVersion

Property Value

Type: Microsoft.ApplicationServer.Caching.DataCacheItemVersion

The DataCacheItemVersion.

Remarks

The DataCacheItemVersion is updated every time the object is updated. Only the latest version of the object is stored on the cache cluster. Due to the distributed nature of the cluster, the cache client may not have the latest copy of the object. For this reason, the DataCacheItemVersion class is essential for concurrency operations.

When using cache notifications, the DataCacheItemVersion object corresponding to an item-related cache operation can be returned to your application with the version parameter of the DataCacheNotificationCallback delegate method.

Notifications are not supported in Windows Azure Shared Caching.

See Also

DataCacheItem Class
Microsoft.ApplicationServer.Caching Namespace

Return to top