Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Used to compare the version of this cache item with the version of another cache item.
Namespace: System.Data.Caching
Assembly: CacheBaseLibrary (in cachebaselibrary.dll)
Syntax
'Declaration
Public Function CompareTo ( _
version As CacheItemVersion _
) As Integer
'Usage
Dim instance As CacheItemVersion
Dim version As CacheItemVersion
Dim returnValue As Integer
returnValue = instance.CompareTo(version)
public int CompareTo (
CacheItemVersion version
)
public:
virtual int CompareTo (
CacheItemVersion^ version
) sealed
public final int CompareTo (
CacheItemVersion version
)
public final function CompareTo (
version : CacheItemVersion
) : int
Parameters
- version
The CacheItemVersion to be compared from another cache item.
Return Value
An integer value: 0 if the versions are equal, greater than zero if the instance is greater than the parameter value, or less than zero if the instance is less than the parameter value.
Remarks
The CacheItemVersion 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 CacheItemVersion class is essential for concurrency operations. For more information, see Concurrency Models (Velocity) and Concurrency Methods (Velocity).
See Also
Reference
CacheItemVersion Class
CacheItemVersion Members
System.Data.Caching Namespace