DataCacheItemVersion Class
TOC
Collapse the table of content
Expand the table of content

DataCacheItemVersion Class

 

Updated: June 30, 2012

Used to represent the version of a cached object.

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

System.Object
  Microsoft.ApplicationServer.Caching.DataCacheItemVersion

public class DataCacheItemVersion : IComparable<DataCacheItemVersion>

NameDescription
System_CAPS_pubmethodCompareTo(DataCacheItemVersion)

Used to compare two versions of the same item, specified with the same key.

System_CAPS_pubmethodEquals(Object)

Used to determine whether another object is the same.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code of the DataCacheItemVersion object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIsEmpty(DataCacheItemVersion)

This API supports the product infrastructure and is not intended to be used directly from your code. Indicates whether the DataCacheItemVersion object points to a null version. This is intended for internal use only.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the two DataCacheItemVersion objects are equal.

System_CAPS_puboperatorSystem_CAPS_staticGreaterThan(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the first object is greater than the second object.

System_CAPS_puboperatorSystem_CAPS_staticInequality(DataCacheItemVersion, DataCacheItemVersion)

Indicates whether the two DataCacheItemVersion objects are unequal.

System_CAPS_puboperatorSystem_CAPS_staticLessThan(DataCacheItemVersion, DataCacheItemVersion)

Indicates 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.

Return to top
Show:
© 2016 Microsoft