# LibTmux.TmuxEnvironment.GetAllAsync

- **Module:** LibTmux.TmuxEnvironment
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Environment/TmuxEnvironmentOperations.cs#L64
- **Page:** https://libtmux.org/reference/dotnet/libtmux-tmuxenvironment-getallasync/

```
LibTmux.TmuxEnvironment.GetAllAsync(cancellationToken: CancellationToken) -> Task<IReadOnlyList<TmuxEnvironmentEntry>>
```

Reads every variable in this environment.

Variables set hidden are not reported. tmux keeps them for the panes it
spawns but will not read them back out.

## Parameters

- `cancellationToken` (CancellationToken) — Cancels the tmux command.

## Returns

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