Watch Aspire live streamsDocsTry Aspire

withVolume

Method
📦 Aspire.Hosting v13.6.0
interface ProjectResource {
// ... omitted for brevity
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ProjectResource;
}

Signature

methodwithVolumebuilder
Adds a volume to a project resource.
withVolume(
target: string,
name: string,
env: string,
isReadOnly?: boolean): ProjectResource
targetstring
namestring
envstring
isReadOnlybooleanoptional= False
ProjectResource

Applies to

This method applies to the following types: