# LibTmux.TmuxCommand.RequiredGeneration

- **Module:** LibTmux.TmuxCommand
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Chaining/TmuxCommand.cs#L85
- **Page:** https://libtmux.org/reference/dotnet/libtmux-tmuxcommand-requiredgeneration/

Gets the server generation this command's target belongs to.

A tmux ID such as <c>%2</c> is only meaningful on the server that issued
it; a restarted server reuses those IDs for different objects. A command
built from an entity therefore records which server the entity was read
from, and <see cref="TmuxChain.ExecuteAsync" /> refuses to run it against
a different one.

Null means the command names no entity -- a raw command, or one whose
target is a name rather than an ID -- and carries no such requirement.
