# SetValue(TValue, NativeParallelMultiHashMapIterator<TKey>)

> Sets a new value for an existing key-value pair.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## SetValue(T, NativeParallelMultiHashMapIterator\<T>)

```csharp
public bool SetValue(TValue item, NativeParallelMultiHashMapIterator<TKey> it)
```

### Parameters

**** (T): The new value.**** (\[NativeParallelMultiHashMapIterator\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmapiterator1)): The iterator representing a key-value pair.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if a value was overwritten. |
