# TryGetNextValue(out TValue, ref NativeParallelMultiHashMapIterator<TKey>)

> Advances an iterator to the next value associated with its key.

## Definition

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

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

```csharp
public readonly bool TryGetNextValue(out TValue item, ref NativeParallelMultiHashMapIterator<TKey> it)
```

### Parameters

**** (T): Outputs the next value.**** (\[NativeParallelMultiHashMapIterator\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmapiterator1)): A reference to the iterator to advance.

### Returns

| Type                                                          | Description                                        |
| ------------------------------------------------------------- | -------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the key was present and had another value. |
