# AsReadOnly()

> Returns a readonly version of this UnsafeParallelHashMap instance.

## Definition

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

```csharp
public UnsafeParallelHashMap<TKey, TValue>.ReadOnly AsReadOnly()
```

### Returns

| Type                                                                                                             | Description                 |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------- |
| [ReadOnly](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashmap2/readonly.md) | ReadOnly instance for this. |

### Remarks

ReadOnly containers point to the same underlying data as the UnsafeParallelHashMap it is made from.
