# LibTmux.Session.GetWindowAsync

- **Module:** LibTmux.Session
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Session.Relations.cs#L90
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-session-getwindowasync/

```
LibTmux.Session.GetWindowAsync(id: WindowId, cancellationToken: CancellationToken) -> Task<Window>
```

Reads one window in this session, throwing when it is absent.

## Parameters

- `id` (WindowId): The window identifier.
- `cancellationToken` (CancellationToken): Cancels the tmux command.

## Returns

The materialized window in this session.

## Raises

- `TmuxObjectNotFoundException`: This session has no matching window.
- `LibTmuxException`: The lookup failed.
