FÖRSÄLJNING: 1-800-867-1389
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

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)


public class DataCacheItemVersion : IComparable<DataCacheItemVersion>


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


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


(Inherited from Object.)


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


(Inherited from Object.)


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.


(Inherited from Object.)


(Inherited from Object.)

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
Var detta till hjälp?
(1500 tecken kvar)
Tack för dina kommentarer
© 2015 Microsoft