| 1 | # ImageInfo |
| 2 | |
| 3 | Read-only wrapper created from `WslcImageInfo`. |
| 4 | |
| 5 | **Properties** |
| 6 | |
| 7 | - `Name()` → image name |
| 8 | - `Sha256()` → 32-byte buffer |
| 9 | - `Size()` → image size |
| 10 | - `CreatedTimestamp()` → WinRT `DateTime` |
| 11 | |
| 12 | ```cpp |
| 13 | auto images = session.GetImages(); |
| 14 | for (auto const& image : images) |
| 15 | { |
| 16 | auto name = image.Name(); |
| 17 | auto hash = image.Sha256(); |
| 18 | auto size = image.Size(); |
| 19 | auto created = image.CreatedTimestamp(); |
| 20 | } |
| 21 | ``` |