# LibTmux.SetOptionRequest.SetOptionRequest

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

```
LibTmux.SetOptionRequest.SetOptionRequest(name: string, value: string, scope: OptionScope?, expandFormat: bool, preventOverwrite: bool, quiet: bool, append: bool, global: bool)
```

Initializes a request to set one option.

## Parameters

- `name` (string) — The option to set, optionally with an array index.
- `value` (string) — The value to store.
- `scope` (OptionScope?) — The scope to set in, or null for the owner's own.
- `expandFormat` (bool) — Whether tmux expands the value as a format before storing it.
- `preventOverwrite` (bool) — Whether an already-set option is left alone.
- `quiet` (bool) — Whether a rejected option is answered with nothing instead of an error.
- `append` (bool) — Whether the value is appended to the existing one.
- `global` (bool) — Whether the global table is set instead of the local one.
