# UnsafeParallelMultiHashMap<TKey, TValue>.ParallelWriter

> A parallel writer for an UnsafeParallelMultiHashMap.

## Definition

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

```csharp
public struct UnsafeParallelMultiHashMap<TKey, TValue>.ParallelWriter
```

## Remarks

Use [UnsafeParallelMultiHashMap\<TKey, TValue>.AsParallelWriter](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelmultihashmap2/asparallelwriter.md) to create a parallel writer for a NativeParallelMultiHashMap.

## Properties

| Property                                                                                                                             | Description                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| [Capacity](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelmultihashmap2/parallelwriter/capacity.md) | Returns the number of key-value pairs that fit in the current allocation. |

## Methods

| Method                                                                                                                     | Description                |
| -------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [Add](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelmultihashmap2/parallelwriter/add.md) | Adds a new key-value pair. |
