# LibTmux.Client.GetAttachedPaneAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Client.Administration.cs#L169
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-client-getattachedpaneasync/

```
LibTmux.Client.GetAttachedPaneAsync(cancellationToken: CancellationToken) -> Task<Pane?>
```

Reads the pane this client has active now.

## Parameters

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

## Returns

The pane, or null when the client has none.
