# AsReadOnly()

> Returns a read only of this list.

## Definition

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

```csharp
public NativeArray<T>.ReadOnly AsReadOnly()
```

### Returns

| Type                                                                                   | Description               |
| -------------------------------------------------------------------------------------- | ------------------------- |
| [ReadOnly](/engine/6000.7/script-reference/unity/collections/nativearray1/readonly.md) | A read only of this list. |
