# LibTmux.Window.GetPaneAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Panes.cs#L94
- **Page:** https://libtmux.org/en/csharp/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`](/en/csharp/latest/reference/libtmux-tmuxobjectnotfoundexception/): This window has no matching pane.
- [`LibTmuxException`](/en/csharp/latest/reference/libtmux-libtmuxexception/): The lookup failed.
