# IDurableQueue&lt;T&gt;.TryPeek(T)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablequeue-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablequeue-1/methods/)

```csharp
public abstract bool TryPeek(out T item)
```

Attempts to return the element at the beginning of the queue without removing it.

### Parameters

- `item` (`T`): The element at the beginning of the queue, or the default value of `T` when the queue is empty.

### Returns

`true` if an element was returned; otherwise, `false`.
