# LibTmux.Window.GetLinkedSessionsAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Relations.cs#L155
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-window-getlinkedsessionsasync/

```
LibTmux.Window.GetLinkedSessionsAsync(cancellationToken: CancellationToken) -> Task<IReadOnlyList<Session>>
```

Reads every session this window is linked into.

tmux can link one window into several sessions, so this reports every
session holding the window rather than a single parent.

## Parameters

- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

The sessions that link this window.
