NamedMapTKey, TValueTryUpdate Method (TKey, TValue)

ScaleOut Software NamedCache API
Updates the key with a newValue value.

Namespace:  Soss.Client.Concurrent
Assembly:  soss_namedcache (in soss_namedcache.dll) Version: 6.1.0.0
Syntax

public bool TryUpdate(
	TKey key,
	TValue newValue
)

Parameters

key
Type: TKey
The key whose value is replaced.
newValue
Type: TValue
The value that replaces the value of the element with key.

Return Value

Type: Boolean
true if the value with key was replaced with newValue, otherwise it returns false.
Exceptions

ExceptionCondition
ArgumentNullExceptionThrown if key is a null reference.
TimeoutExceptionThrown when the maximum number of internal retries reached.
See Also

Reference