# CreateNativeParallelMultiHashMap<TKey, TValue, U>(int, ref U)

> Create a NativeParallelMultiHashMap from a managed array, using a provided Allocator.

## Definition

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

## CreateNativeParallelMultiHashMap\<T, U, V>(int, T)

```csharp
public static NativeParallelMultiHashMap<TKey, TValue> CreateNativeParallelMultiHashMap<TKey, TValue, U>(int length, ref U allocator) where TKey : unmanaged, IEquatable<TKey> where TValue : unmanaged where U : unmanaged, AllocatorManager.IAllocator
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The desired capacity of the NativeParallelMultiHashMap.**** (T): The Allocator to use.

### Returns

| Type                                                                                                                  | Description                                              |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [NativeParallelMultiHashMap\<T, T>](/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmap2.md) | Returns the NativeParallelMultiHashMap that was created. |
