# ILogViewRead&lt;TView, TLogEntry&gt;.RetrieveLogSegment(int, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewread-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewread-2/methods/)

```csharp
public abstract Task<IReadOnlyList<TLogEntry>> ILogViewRead<TView, RetrieveLogSegment(int fromVersion, int toVersion)
```

Attempt to retrieve a segment of the log, possibly from storage. Throws `System.NotSupportedException` if the log cannot be read, which depends on the providers used and how they are configured.

### Parameters

- `fromVersion` (`int`): the start position
- `toVersion` (`int`): the end position

### Returns

a
