Watch Aspire live streamsDocsTry Aspire

VolumeMountBindingAnnotation Properties

ClassProperties4 members
Describes how a named volume binds to a resource across the inner and outer loop.
EnvironmentVariableNameSection titled EnvironmentVariableNamenullablestring?
Gets the environment variable that receives the effective storage path, or null when this binding only supplies a run-mode path.
public string? EnvironmentVariableName { get; init; }
MountPathSection titled MountPathnullablestring?
Gets the path the volume is mounted at once deployed, or null when this binding only supplies a run-mode path for a mount declared elsewhere.
public string? MountPath { get; init; }
RunModeHostPathResolverSection titled RunModeHostPathResolvernullableFunc<EnvironmentCallbackContext, string>
Gets a callback that returns the local host directory backing the volume in run mode, or null to use the default workload-scoped directory under IAspireStore.
public Func<EnvironmentCallbackContext, string>? RunModeHostPathResolver { get; init; }
Gets the name of the volume this binding applies to.
public string VolumeName { get; }