| IMapTKey, TValueReplace Method (TKey, TValue, TValue) |
Replaces the entry for a key only if currently mapped to a given value.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.3
Syntax bool Replace(
TKey key,
TValue oldValue,
TValue newValue
)
Function Replace (
key As TKey,
oldValue As TValue,
newValue As TValue
) As Boolean
bool Replace(
TKey key,
TValue oldValue,
TValue newValue
)
abstract Replace :
key : 'TKey *
oldValue : 'TValue *
newValue : 'TValue -> bool
Parameters
- key
- Type: TKey
key - oldValue
- Type: TValue
old value - newValue
- Type: TValue
new value
Return Value
Type:
Booleantrue if the value was replaced
Remarks
Replaces the entry for a key only if currently mapped to a given value.
Warning:
This method uses
GetHashCode and
Equals of binary form of
the
key, not the actual implementations of
GetHashCode and
Equals
defined in
key's class.
See Also