DataCacheGetIfNewer Method (String, DataCacheItemVersion)Windows Server AppFabric Caching Compatibility Library
Retrieves an object from the cache, but only if a newer version of the object resides in the cache.

Namespace: Soss.Compat.WSAF
Assembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
Syntax

public Object GetIfNewer(
	string key,
	ref DataCacheItemVersion version
)

Parameters

key
Type: SystemString
The unique identifier used to access the object in the cache.
version
Type: Soss.Compat.WSAFDataCacheItemVersion
A reference to the object's version.

Return Value

Type: Object
If the version in the data grid is newer than specified via the version parameter, the object is returned from the cache. If the version in the cache is the same or older than the version argument, null is returned.
See Also

Reference