# LibTmux.Window.LinkAsync

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

tmux command: [`link-window`](/en/tmux/latest/manual/link-window/)

```
LibTmux.Window.LinkAsync(request: LinkWindowRequest, cancellationToken: CancellationToken) -> Task
```

Links this window into another session.

A guard in the native queue rejects the command when the captured
source index belongs to a different window or no longer exists.

## Parameters

- `request` (`LinkWindowRequest`): Where the link goes.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
