# LibTmux.TmuxEnvironment.GetAllAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Environment/TmuxEnvironmentOperations.cs#L64
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxenvironment-getallasync/

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

Reads every variable in this environment.

Hidden variables are omitted. tmux can use them in formats, but excludes
them from the environment of new processes.

## Parameters

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

## Returns

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