Files
Blue 901cb9c134 Run the documentation pipeline when doc/ is edited + various rendering fixes (#40931)
* Run the documentation pipeline when doc/ is edited + various rendering fixes

* Fix inverted condition
2026-06-28 06:43:01 -07:00

20 lines
291 B
Markdown

# ContainerState
`Container::State()` casts directly from `WslcContainerState`.
Underlying C values:
- `Invalid = 0`
- `Created = 1`
- `Running = 2`
- `Exited = 3`
- `Deleted = 4`
```cpp
auto state = container.State();
if (state == static_cast<ContainerState>(2))
{
// running
}
```