# LibTmux.CapturedValue

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Snapshots/CapturedValue.cs#L13
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-capturedvalue/

Holds the one child a snapshot captured for a relation, if it read it.

A relation that holds at most one child says so in its type. An uncaptured
value is not an absent one: reading <see cref="Value" /> when the snapshot
never looked throws <see cref="IncompleteSnapshotException" /> rather than
answering null, so a caller cannot mistake unread state for absent state.

## Members

- `Relation` (property): Gets the relation name this instance carries.
- `CapturedDepth` (property): Gets the depth the owning snapshot reached.
- `IsCaptured` (property): Gets whether the snapshot read this relation.
- `Value` (property): Gets the captured child.
- `OrNull` (method): Gets the captured child, or null when the snapshot never read it.
- `TryGetValue` (method): Tries to read the captured child.
