# VolumeSnapshot Properties

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

A snapshot of a volume, mounted to a container.

## IsReadOnly

- Name: `IsReadOnly`
- Modifiers: `get; init`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

Whether the volume mount is read-only or not.

```csharp
public bool IsReadOnly { get; init; }
```

## MountType

- Name: `MountType`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

Gets the mount type, such as `VolumeMountType.Bind` or `VolumeMountType.Volume`

```csharp
public string MountType { get; init; }
```

## Source

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

The name of the volume. Can be `null` if the mount is an anonymous volume.

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

## Target

- Name: `Target`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The target of the mount.

```csharp
public string Target { get; init; }
```
