Partager via


VolumeSnapshot(String, String, String, Boolean) Constructor

Definition

A snapshot of a volume, mounted to a container.

public VolumeSnapshot (string? Source, string Target, string MountType, bool IsReadOnly);
new Aspire.Hosting.ApplicationModel.VolumeSnapshot : string * string * string * bool -> Aspire.Hosting.ApplicationModel.VolumeSnapshot
Public Sub New (Source As String, Target As String, MountType As String, IsReadOnly As Boolean)

Parameters

Source
String

The name of the volume. Can be null if the mount is an anonymous volume.

Target
String

The target of the mount.

MountType
String

Gets the mount type, such as Aspire.Hosting.Dcp.Model.VolumeMountType.Bind or Aspire.Hosting.Dcp.Model.VolumeMountType.Volume

IsReadOnly
Boolean

Whether the volume mount is read-only or not.

Applies to