# LibTmux.TmuxOptions.GetAllAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Options/TmuxOptions.cs#L149
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxoptions-getallasync/

```
LibTmux.TmuxOptions.GetAllAsync(request: GetOptionsRequest?, cancellationToken: CancellationToken) -> Task<IReadOnlyList<TmuxOption>>
```

Reads every option in the scope.

Unescaping a doubled dollar sign needs the connected tmux's version, so
a table reached from a handle that has not found a live server yet
discovers one first.

## Parameters

- `request` (`GetOptionsRequest?`): How to read them, or null for the plain reading.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

Every option tmux reported, in the order it reported them.

## Raises

- [`TmuxOptionException`](/en/csharp/latest/reference/libtmux-tmuxoptionexception/): tmux rejected the request.
