mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
22 lines
427 B
Markdown
22 lines
427 B
Markdown
# ImageInfo
|
|
|
|
Read-only wrapper created from `WslcImageInfo`.
|
|
|
|
**Properties**
|
|
|
|
- `Name()` → image name
|
|
- `Sha256()` → 32-byte buffer
|
|
- `Size()` → image size
|
|
- `CreatedTimestamp()` → WinRT `DateTime`
|
|
|
|
```cpp
|
|
auto images = session.GetImages();
|
|
for (auto const& image : images)
|
|
{
|
|
auto name = image.Name();
|
|
auto hash = image.Sha256();
|
|
auto size = image.Size();
|
|
auto created = image.CreatedTimestamp();
|
|
}
|
|
```
|