# GetNestedContainer(AtomicSafetyHandle)

> Checks whether an AtomicSafetyHandle represents a nested container.

## Definition

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

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

### Parameters

**** (\[AtomicSafetyHandle]\(/engine/6000.6/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 given AtomicSafetyHandle is marked as a nested container; `false` otherwise. |

### Remarks

If the AtomicSafetyHandle is marked as a nested container, it can't be used safely in jobs.

Additional Resources: [AtomicSafetyHandle.SetNestedContainer](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle/setnestedcontainer.md).
