# GetAtomicSafetyHandle<T>(NativeSlice<T>)

> Gets the AtomicSafetyHandle for a NativeSlice.

## Definition

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

```csharp
public static AtomicSafetyHandle GetAtomicSafetyHandle<T>(NativeSlice<T> slice) where T : struct
```

### Parameters

**** (\[NativeSlice\<T>]\(/engine/6000.3/script-reference/unity/collections/nativeslice1)): The NativeSlice to check.

### Returns

| Type                                                                                                          | Description                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| [AtomicSafetyHandle](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) | The [AtomicSafetyHandle](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe/atomicsafetyhandle.md) of `slice`. |
