# ITransactionalState&lt;TState&gt;.PerformRead(Func&lt;TState, TResult&gt;, ReadIsolation)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.abstractions.itransactionalstate-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.abstractions.itransactionalstate-1/methods/)

```csharp
public abstract Task<TResult> PerformRead<TResult>(Func<TState, TResult> readFunction, ReadIsolation isolation)
```

Performs a read operation with the specified isolation and returns the result.

### Parameters

- `readFunction` (`Func<TState, TResult>`): A function that reads the state and returns the result. The function must leave the supplied state unchanged.
- `isolation` (`ReadIsolation`): The read isolation.

### Returns

A task whose result is the value returned by `readFunction`.
