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.
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Public Function GetIfNewer ( key As String, ByRef version As DataCacheItemVersion, region As String ) As Object
Parameters
- key
-
Type:
System.String
The unique value that is used to identify the object in the cache.
- version
-
Type:
Microsoft.ApplicationServer.Caching.DataCacheItemVersion
The version of the desired object, passed by reference.
- region
-
Type:
System.String
The name of the region where the object resides.
Return Value
Type: System.ObjectIf 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.
Show: