# LibTmux.ConfirmBeforeRequest.ToCommand

- **Module:** LibTmux.ConfirmBeforeRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/ConfirmBeforeRequest.cs#L46
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-confirmbeforerequest-tocommand/

```
LibTmux.ConfirmBeforeRequest.ToCommand(server: Server) -> TmuxCommand
```

Returns a confirmation request as one tmux command.

Naming the accepting key, and defaulting to yes, arrived in tmux 3.4,
so the server decides whether the built command carries them.

## Parameters

- `server` (Server): The server the confirmation is shown on.

## Returns

The command, ready to add to a <see cref="TmuxChain" />.

## Raises

- `ArgumentNullException`: <paramref name="server" /> is null.
