---
title: isReadOnly
framework: virtualization
role: symbol
role_heading: Instance Property
path: virtualization/vzdiskimagestoragedeviceattachment/isreadonly
---

# isReadOnly

A Boolean value that indicates whether the underlying disk image is read-only.

## Declaration

```swift
var isReadOnly: Bool { get }
```

## Discussion

Discussion If the value of this property is true, the guest operating system may read the contents of the disk image, but may not write to it.

## See Also

### Getting the disk image details

- [url](virtualization/vzdiskimagestoragedeviceattachment/url.md)
- [cachingMode](virtualization/vzdiskimagestoragedeviceattachment/cachingmode.md)
- [synchronizationMode](virtualization/vzdiskimagestoragedeviceattachment/synchronizationmode.md)
