# LibTmux.Internal.TmuxEnvironmentVariables.TryRead

- **Module:** LibTmux.Internal.TmuxEnvironmentVariables
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Environment/TmuxEnvironment.cs#L38
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-tmuxenvironmentvariables-tryread/

```
LibTmux.Internal.TmuxEnvironmentVariables.TryRead(environment: IReadOnlyDictionary<string, string>?, entry: TmuxServerLocation?) -> bool
```

Tries to read the tmux server entry from an environment.

## Parameters

- `environment` (IReadOnlyDictionary<string, string>?) — The environment, or null for the process.
- `entry` (TmuxServerLocation?) — The parsed entry when present and well formed.

## Returns

True when the environment names a tmux server.
