# ContainerMountAnnotation Properties

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

Represents a mount annotation for a container resource.

## IsReadOnly

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

Gets a value indicating whether the volume mount is read-only.

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

## Source

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

Gets the source of the bind mount or name if a volume. Can be `null` if the mount is an anonymous volume.

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

## Target

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

Gets the target of the mount.

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

## Type

- Name: `Type`
- Modifiers: `get`
- Returns: [ContainerMountType](/reference/api/csharp/aspire.hosting/containermounttype.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerMountAnnotation.cs#L61)

Gets the type of the mount.

```csharp
public ContainerMountType Type { get; }
```
