ContainerMountAnnotation Class

Definition

Represents a mount annotation for a container resource.

C#
public sealed class ContainerMountAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
Inheritance
ContainerMountAnnotation
Implements

Constructors

ContainerMountAnnotation(String, String, ContainerMountType, Boolean)

Instantiates a mount annotation that specifies the details for a container mount.

Properties

IsReadOnly

Gets a value indicating whether the volume mount is read-only.

Source

Gets the source of the bind mount or name if a volume. Can be null if the mount is an anonymous volume.

Target

Gets the target of the mount.

Type

Gets the type of the mount.

Applies to

Proizvod Verzije
.NET Aspire 8.0.0, 9.0.0, 9.1.0