# LibTmux.ConfirmBeforeRequest.ConfirmBeforeRequest

- **Module:** LibTmux.ConfirmBeforeRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/ConfirmBeforeRequest.cs#L14
- **Page:** https://libtmux.org/reference/dotnet/libtmux-confirmbeforerequest-confirmbeforerequest/

```
LibTmux.ConfirmBeforeRequest.ConfirmBeforeRequest(command: IReadOnlyList<string>, prompt: string?, confirmKey: string?, defaultYes: bool, targetClient: string?)
```

Initializes a confirmation.

## Parameters

- `command` (IReadOnlyList<string>) — The tmux command to run once confirmed.
- `prompt` (string?) — The question shown, or null for tmux's own wording.
- `confirmKey` (string?) — The key that confirms, or null for tmux's default.
- `defaultYes` (bool) — Whether pressing enter confirms rather than cancels.
- `targetClient` (string?) — The client to ask, or null for the caller's own.
