DataCache.Increment Method (String, Int64, Int64)
Increments a long value stored in the cache.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)
Syntax
public long Increment(
string key,
long value,
long initialValue
)
public:
long long Increment(
String^ key,
long long value,
long long initialValue
)
member Increment :
key:string *
value:int64 *
initialValue:int64 -> int64
Public Function Increment (
key As String,
value As Long,
initialValue As Long
) 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 increase the stored value.
initialValue
Type: System.Int64The initial value to use if the object does not exist in the cache.
Return Value
Type: System.Int64
Returns the incremented Int64 value.
See Also
Increment Overload
DataCache Class
Microsoft.ApplicationServer.Caching Namespace
Return to top