DataCache.Decrement Method (String, Int64, Int64, String)
Decrements a long value stored in the cache in the specified region.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public long Decrement(
string key,
long value,
long initialValue,
string region
)
public:
long long Decrement(
String^ key,
long long value,
long long initialValue,
String^ region
)
member Decrement :
key:string *
value:int64 *
initialValue:int64 *
region:string -> int64
Public Function Decrement (
key As String,
value As Long,
initialValue As Long,
region As String
) As Long
Parameters
key
Type: System.StringThe key of the object stored in the cache. The object must be a long.
value
Type: System.Int64The amount to decrease the stored value.
initialValue
Type: System.Int64The initial value to use if the object does not exist in the cache.
region
Type: System.StringThe user-defined region in which the object is stored.
Return Value
Type: System.Int64
Returns the decremented Int64 value.
See Also
Decrement Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top