# GetAllowReadOrWriteAccess(AtomicSafetyHandle)

> Checks if the AtomicSafetyHandle is configured to allow reading or writing.

## Definition

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

```csharp
public static bool GetAllowReadOrWriteAccess(AtomicSafetyHandle handle)
```

### Parameters

**** (\[AtomicSafetyHandle]\(/engine/6000.5/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle)): The AtomicSafetyHandle to check.

### Returns

| Type                                                          | Description                                                                                                                                                                           |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the [AtomicSafetyHandle](/engine/6000.5/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) is configured to allow reading or writing, false otherwise. |

### Remarks

Read and write access is allowed by default in any newly created AtomicSafetyHandle.

Additional Resources: [AtomicSafetyHandle.SetAllowReadOrWriteAccess](/engine/6000.5/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/setallowreadorwriteaccess.md).
