# LibTmux.CapturedValue

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Snapshots/CapturedValue.cs#L13
- **Page:** https://libtmux.org/en/csharp/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

### Common operations

- `IsCaptured` (property): Gets whether the snapshot read this relation.
- `Value` (property): Gets the captured child.

### Other members

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