public sealed record DesktopVolumeMountOptions : IEquatable<DesktopVolumeMountOptions> How IDesktopVolumes.MountAsync mounts a volume.
Remarks
The default value, read-write without options, mounts as IDesktopVolumes.MountAsync does.
Constructors
DesktopVolumeMountOptions
public DesktopVolumeMountOptions() No documentation.
Properties
Options
public ImmutableArray<string> Options { get; init; } Platform mount options, such as noexec or uid=1000 on Linux, or nobrowse on macOS; empty by default.
Exceptions
ArgumentExceptionAn option is empty or contains a comma, white space or NUL.
Remarks
The options are passed to the platform as they are: UDisks2 accepts only the options its configuration permits for the filesystem and reports others as PlatformFailureCode.InvalidData.
ReadOnly
public bool ReadOnly { get; init; } Whether to mount the volume read-only.