# LibTmux.SetHooksRequest.SetHooksRequest

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

```
LibTmux.SetHooksRequest.SetHooksRequest(name: string, values: IReadOnlyDictionary<int, string>, scope: OptionScope?, global: bool, clearExisting: bool)
```

Initializes a request to set several entries of one hook.

## Parameters

- `name` (string) — The hook name, without an index.
- `values` (IReadOnlyDictionary<int, string>) — The command to place at each index.
- `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.
- `clearExisting` (bool) — Whether entries already there are removed first.
