# GetAtomicSafetyHandle<T>(NativeArray<T>)

> Gets the AtomicSafetyHandle that is used for safety control on a NativeArray.

## Definition

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

```csharp
public static AtomicSafetyHandle GetAtomicSafetyHandle<T>(NativeArray<T> array) where T : struct
```

### Parameters

**** (\[NativeArray\<T>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): The NativeArray to check.

### Returns

| Type                                                                                                          | Description                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [AtomicSafetyHandle](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) | The [AtomicSafetyHandle](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) of the given NativeArray. |
