Partilhar via


ContainerMountAnnotation(String, String, ContainerMountType, Boolean) Constructor

Definition

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

public ContainerMountAnnotation (string? source, string target, Aspire.Hosting.ApplicationModel.ContainerMountType type, bool isReadOnly);
new Aspire.Hosting.ApplicationModel.ContainerMountAnnotation : string * string * Aspire.Hosting.ApplicationModel.ContainerMountType * bool -> Aspire.Hosting.ApplicationModel.ContainerMountAnnotation
Public Sub New (source As String, target As String, type As ContainerMountType, isReadOnly As Boolean)

Parameters

source
String

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

target
String

The target path of the mount.

type
ContainerMountType

The type of the mount.

isReadOnly
Boolean

A value indicating whether the mount is read-only.

Applies to