# LibTmux.NewSessionRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Requests/NewSessionRequest.cs#L10
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-newsessionrequest/

Describes one <c>new-session</c> invocation.

Every flag is explicit rather than inferred, so the argv tmux receives is
readable from the call site instead of assembled by hidden defaults.

## Members

### Other members

- `Attach` (property): Gets whether the new session is attached rather than detached.
- `ClientFlags` (property): Gets the comma-separated client flags passed with <c>-f</c>.
- `Command` (property): Gets the command the first pane runs.
- `DetachOthers` (property): Gets whether other clients are detached on attach.
- `Environment` (property): Gets the environment entries set on the session.
- `ExpectedGeneration` (property): Gets the daemon generation required for creation, or null for endpoint-scoped creation.
- `Height` (property): Gets the requested height.
- `Name` (property): Gets the session name, or null to let tmux choose.
- `NoSize` (property): Gets whether tmux may ignore the requested size.
- `ReplaceExisting` (property): Gets whether a session of the same name is removed first.
- `StartDirectory` (property): Gets the working directory for the first pane.
- `ToCommand` (method): Returns a session request as one tmux command.
- `Width` (property): Gets the requested width.
- `WindowName` (property): Gets the name of the first window.
