# IDurableLog&lt;T&gt;.TryGet(long, T)

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

```csharp
public abstract bool TryGet(long sequence, out T item)
```

Attempts to get the retained entry with the specified sequence number.

### Parameters

- `sequence` (`long`): The entry's sequence number.
- `item` (`T`): The entry, if retained.

### Returns

`true` if the log retains an entry with `sequence`; otherwise, `false`.
