TrySetValue

Changes the value of the key/value pair from the collection at the specified key.

bool TrySetValue(
   TKey    key,      // key
   TValue  value     // new value
   );

Parameters

key

[in]  Key.

value

[in] The new value to assign to the specified key-value pair.

Return Value

Returns true on successful, or false otherwise.