# VolumeMountBindingAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [VolumeMountBindingAnnotation](/reference/api/csharp/aspire.hosting/volumemountbindingannotation.md)
- Kind: `Properties`
- Members: `4`

Describes how a named volume binds to a resource across the inner and outer loop.

<a id="environmentvariablename"></a>

## EnvironmentVariableName

- Name: `EnvironmentVariableName`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/VolumeMountBindingAnnotation.cs)

Gets the environment variable that receives the effective storage path, or `null` when this binding only supplies a run-mode path.

```csharp
public string? EnvironmentVariableName { get; init; }
```

<a id="mountpath"></a>

## MountPath

- Name: `MountPath`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/VolumeMountBindingAnnotation.cs)

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.

```csharp
public string? MountPath { get; init; }
```

<a id="runmodehostpathresolver"></a>

## RunModeHostPathResolver

- Name: `RunModeHostPathResolver`
- Modifiers: `nullable` `get; init`
- Returns: `Func<EnvironmentCallbackContext, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/VolumeMountBindingAnnotation.cs)

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](/reference/api/csharp/aspire.hosting/iaspirestore.md).

```csharp
public Func<EnvironmentCallbackContext, string>? RunModeHostPathResolver { get; init; }
```

<a id="volumename"></a>

## VolumeName

- Name: `VolumeName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/VolumeMountBindingAnnotation.cs#L46)

Gets the name of the volume this binding applies to.

```csharp
public string VolumeName { get; }
```
