DataCache.GetIfNewer Method (String, DataCacheItemVersion, String)
Gets an object from the specified region, but only if a newer version of the object resides in the region. This overload is not supported in Windows Azure Shared Caching.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public object GetIfNewer(
string key,
ref DataCacheItemVersion version,
string region
)
public:
Object^ GetIfNewer(
String^ key,
DataCacheItemVersion^% version,
String^ region
)
member GetIfNewer :
key:string *
version:DataCacheItemVersion byref *
region:string -> Object
Public Function GetIfNewer (
key As String,
ByRef version As DataCacheItemVersion,
region As String
) As Object
Parameters
key
Type: System.StringThe unique value that is used to identify the object in the cache.
version
Type: Microsoft.ApplicationServer.Caching.DataCacheItemVersionThe version of the desired object, passed by reference.
region
Type: System.StringThe name of the region where the object resides.
Return Value
Type: System.Object
If the version in the region differs from the version parameter, the corresponding cached object is returned. If the version in the region is the same as the version parameter, null is returned.
See Also
GetIfNewer Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top