# LibTmux.Internal.RelationReader.CapturedSession

- **Module:** LibTmux.Internal.RelationReader
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Materialization/RelationReader.cs#L27
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-relationreader-capturedsession/

```
LibTmux.Internal.RelationReader.CapturedSession(snapshot: IReadOnlyDictionary<string, string?>?) -> SessionId?
```

Reads the session a handle was materialized in.

## Parameters

- `snapshot` (IReadOnlyDictionary<string, string?>?) — The fields captured with the handle, or null.

## Returns

The captured session, or null when none was captured.
