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

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,
	string region
)

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.
region
Type: SystemString
The name of the region where the object is stored.

Return Value

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

Reference