# LibTmux.CapturedRelation

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Snapshots/CapturedRelation.cs#L12
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-capturedrelation/

Holds the children a snapshot captured for one relation.

An uncaptured relation is not an empty one. Enumerating a relation the
snapshot never read throws instead of reporting zero children, so a caller
cannot mistake unread state for absent state.

## Members

### Common operations

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

### Other members

- `CapturedDepth` (property): Gets the depth the owning snapshot reached.
- `Count` (property)
- `GetEnumerator` (method)
- `OrEmpty` (method): Returns the captured children, or an empty list when unread.
- `Relation` (property): Gets the relation name this instance carries.
