# LibTmux.Internal.TmuxEnvironmentVariables.TryReadPane

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

```
LibTmux.Internal.TmuxEnvironmentVariables.TryReadPane(environment: IReadOnlyDictionary<string, string>?, paneId: PaneId) -> bool
```

Reads the pane a process was spawned in.

## Parameters

- `environment` (IReadOnlyDictionary<string, string>?) — The environment, or null for the process.
- `paneId` (PaneId) — The parsed pane identifier.

## Returns

True when the environment names a pane.
