SALES: 1-800-867-1380

DataCacheItemVersion Class

Used to represent the version of a cached object.


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

public class DataCacheItemVersion : IComparable<DataCacheItemVersion>

The DataCacheItemVersion type exposes the following members.

Public methodCompareToUsed to compare two versions of the same item, specified with the same key.
Public methodEqualsUsed to determine whether another object is the same. (Overrides Object..::..Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash code of the DataCacheItemVersion object. (Overrides Object..::..GetHashCode()()()().)
Public methodGetType (Inherited from Object.)
Public methodStatic memberIsEmptyInfrastructure. Indicates whether the DataCacheItemVersion object points to a null version. This is intended for internal use only.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Public operatorStatic memberEqualityIndicates whether the two DataCacheItemVersion objects are equal.
Public operatorStatic memberGreaterThanIndicates whether the first object is greater than the second object.
Public operatorStatic memberInequalityIndicates whether the two DataCacheItemVersion objects are unequal.
Public operatorStatic memberLessThanIndicates whether the value of the first object is less than the second object.

The DataCacheItemVersion is updated every time that 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft