# LibTmux.Window.GetPaneAsync

- **Module:** LibTmux.Window
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Window.Panes.cs#L94
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-window-getpaneasync/

```
LibTmux.Window.GetPaneAsync(target: string, cancellationToken: CancellationToken) -> Task<Pane>
```

Reads one pane in this window, throwing when it is absent.

## Parameters

- `target` (string): The pane identifier or index.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

The materialized pane in this window.

## Raises

- `TmuxObjectNotFoundException`: This window has no matching pane.
- `LibTmuxException`: The lookup failed.
