ComposeFile.AddVolume(Volume) Method
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.
Adds a new volume to the Compose file.
public Aspire.Hosting.Docker.Resources.ComposeFile AddVolume(Aspire.Hosting.Docker.Resources.ServiceNodes.Volume volume);
member this.AddVolume : Aspire.Hosting.Docker.Resources.ServiceNodes.Volume -> Aspire.Hosting.Docker.Resources.ComposeFile
Public Function AddVolume (volume As Volume) As ComposeFile
Parameters
- volume
- Volume
The volume instance to add to the Compose file.
Returns
The updated ComposeFile instance with the added volume.