# TryEnqueue(T)

> Adds an element at the front of the queue.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public bool TryEnqueue(T value)
```

### Parameters

**** (T): The value to be added.

### Returns

| Type                                                          | Description                  |
| ------------------------------------------------------------- | ---------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the value was added. |

### Remarks

Does nothing if the queue is full.
