# SetAllowSecondaryVersionWriting(AtomicSafetyHandle, bool)

> Sets whether other AtomicSafetyHandles that use a secondary version number can write to the NativeContainer protected by a given AtomicSafetyHandle.

## Definition

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

```csharp
public static void SetAllowSecondaryVersionWriting(AtomicSafetyHandle handle, bool allowWriting)
```

### Parameters

**** (\[AtomicSafetyHandle]\(/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle)): The AtomicSafetyHandle of the NativeContainer.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, allows write access to the NativeContainer for AtomicSafetyHandles that use secondary version number. If false, handles that usse a secondary version number only have read access to the NativeContainer.

### Remarks

Additional Resources: [AtomicSafetyHandle.UseSecondaryVersion](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/usesecondaryversion.md), [Copying NativeContainer structures](/engine/6000.3/manual/scripting/programming-distribute-work-threads/job-system/thread-safe-types/copy-nativecontainer.md).
