# TryGetFirstValue(TKey, out TValue, out NativeParallelMultiHashMapIterator<TKey>)

> Gets an iterator for a key.

## Definition

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

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

```csharp
public bool TryGetFirstValue(TKey key, out TValue item, out NativeParallelMultiHashMapIterator<TKey> it)
```

### Parameters

**** (T): The key.**** (T): Outputs the associated value represented by the iterator.**** (\[NativeParallelMultiHashMapIterator\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmapiterator1)): Outputs an iterator.

### Returns

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