Volume.ReadOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether the volume is mounted as read-only.
[YamlDotNet.Serialization.YamlMember(Alias="read_only")]
public bool? ReadOnly { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="read_only")>]
member this.ReadOnly : Nullable<bool> with get, set
Public Property ReadOnly As Nullable(Of Boolean)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
When set to true, the volume will be mounted with read-only permissions, preventing modification of the data within the container. This is commonly used to enforce data immutability for certain use cases.