# LibTmux.Internal.SessionName

- **Module:** LibTmux.Internal
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Internal/SessionName.cs#L10
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-sessionname/

Validates tmux session names.

Creation and renaming both need this check, and they disagree about what
tmux does with a rejected name: 3.2a silently rewrites <c>:</c> to <c>_</c>
while 3.7b stores it verbatim. Neither outcome is what the caller asked for,
so the name is refused before it reaches tmux.

## Members

- `Validate` (method) — Validates and returns one tmux session name.
