Watch Aspire live streamsDocsTry Aspire

ExecutableResource.withVolume

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

Signature

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

Defined on

This method is defined on the following type: