DataCacheItem.Version Property
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The version of the cached object.
Namespace: Microsoft.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)
Syntax
'Declaration
Public ReadOnly Property Version As DataCacheItemVersion
'Usage
Dim instance As DataCacheItem
Dim value As DataCacheItemVersion
value = instance.Version
public DataCacheItemVersion Version { get; }
public:
property DataCacheItemVersion^ Version {
DataCacheItemVersion^ get ();
}
/** @property */
public DataCacheItemVersion get_Version ()
public function get Version () : DataCacheItemVersion
Property Value
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. For more information, see Concurrency Models (Velocity) and Concurrency Methods (Velocity). 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. For more information, see Cache Notifications (Velocity)Cache Notifications (Velocity).
Note
Version comparisons are only meaningful when comparing versions of the same item specified with the same key. Comparison methods may return a result, but the result is only valid for versions of the same key.
See Also
Reference
DataCacheItem Class
DataCacheItem Members
Microsoft.Data.Caching Namespace