VolumeSnapshot(String, String, String, Boolean) Constructor
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.
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.