# LibTmux.Pane.CaptureToBufferAsync

- **Module:** LibTmux.Pane
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Pane.Capture.cs#L30
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-pane-capturetobufferasync/

```
LibTmux.Pane.CaptureToBufferAsync(bufferName: string, request: CapturePaneRequest?, cancellationToken: CancellationToken) -> Task
```

Captures the pane's contents into a tmux buffer.

## Parameters

- `bufferName` (string): The buffer to write.
- `request` (CapturePaneRequest?): What to capture.
- `cancellationToken` (CancellationToken): Cancels the tmux command.
