# LibTmux.SetHookRequest.SetHookRequest

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

```
LibTmux.SetHookRequest.SetHookRequest(name: string, value: string, scope: OptionScope?, global: bool, unset: bool, runImmediately: bool, append: bool)
```

Initializes a request to set one hook.

## Parameters

- `name` (string) — The hook name, optionally with an array index.
- `value` (string) — The tmux command to run when the hook fires.
- `scope` (OptionScope?) — The scope to set in, or null for the owner's own.
- `global` (bool) — Whether the global table is set instead of the local one.
- `unset` (bool) — Whether the hook is removed rather than set.
- `runImmediately` (bool) — Whether tmux also runs the command now.
- `append` (bool) — Whether the command joins the hook's existing entries.
