ConcurrentDictionary<TKey, TValue>::TryUpdate Method (TKey, TValue, TValue)
Compares the existing value for the specified key with a specified value, and if they are equal, updates the key with a third value.
Assembly: mscorlib (in mscorlib.dll)
The key whose value is compared with comparisonValue and possibly replaced.
The value that replaces the value of the element that has the specified key if the comparison results in equality.
The value that is compared to the value of the element that has the specified key.
Return ValueType: System::Boolean
true if the value with key was equal to comparisonValue and was replaced with newValue; otherwise, false.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1