# LibTmux.SetHookRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/SetHookRequest.cs#L6
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-sethookrequest/

Describes one <c>set-hook</c> invocation.

## Members

- `SetHookRequest` (method): Initializes a request to set one hook.
- `Name` (property): Gets the hook name, optionally with an array index.
- `Value` (property): Gets the tmux command to run when the hook fires.
- `Scope` (property): Gets the scope to set in, or null for the owner's own.
- `Global` (property): Gets whether the global table is set instead of the local one.
- `Unset` (property): Gets whether the hook is removed rather than set.
- `RunImmediately` (property): Gets whether tmux also runs the command now.
- `Append` (property): Gets whether the command joins the hook's existing entries.
- `ToCommand` (method): Returns a hook request as one tmux command.
