| 1 | # ContainerNamedVolume |
| 2 | |
| 3 | Attaches a named session VHD volume to a container. |
| 4 | |
| 5 | **Constructors / properties** |
| 6 | |
| 7 | - `ContainerNamedVolume(hstring name, hstring containerPath, bool readOnly)` |
| 8 | - `Name()` / setter |
| 9 | - `ContainerPath()` / setter |
| 10 | - `ReadOnly()` / setter |
| 11 | |
| 12 | ```cpp |
| 13 | ContainerNamedVolume named{ L"build-cache", L"/cache", false }; |
| 14 | named.Name(L"build-cache"); |
| 15 | named.ContainerPath(L"/cache"); |
| 16 | named.ReadOnly(false); |
| 17 | ``` |