# ConfigReference Properties

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [ConfigReference](/reference/api/csharp/aspire.hosting.docker/configreference.md)
- Kind: `Properties`
- Members: `5`

Represents a reference to a configuration used within a service resource.

## Gid

- Name: `Gid`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/ConfigReference.cs)

Gets or sets the group ID (GID) used to identify the group of the referenced configuration.

```csharp
public string? Gid { get; set; }
```

## Remarks

The GID is an optional integer parameter that specifies the group ownership for the resource. If set, it defines the group to which the target resource belongs.

## Mode

- Name: `Mode`
- Modifiers: `nullable` `get; set`
- Returns: `UnixFileMode?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/ConfigReference.cs)

Represents the access mode for the configuration reference in the form of an integer value. This property determines the permissions or access level for the configuration being referenced. Typical values might correspond to standard file permission modes.

```csharp
public UnixFileMode? Mode { get; set; }
```

## Source

- Name: `Source`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/ConfigReference.cs)

Gets or sets the source configuration reference. This property specifies the origin of the configuration file or data required by the service node.

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

## Target

- Name: `Target`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/ConfigReference.cs)

Specifies the target location where the referenced configuration data will be applied or mounted in the context of the Docker service.

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

## Uid

- Name: `Uid`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/ConfigReference.cs)

Gets or sets the user identifier (UID) associated with the configuration reference. Optional property that specifies the user ID for accessing the configuration target.

```csharp
public string? Uid { get; set; }
```
