# BuildImageSecretValue Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [BuildImageSecretValue](/reference/api/csharp/aspire.hosting/buildimagesecretvalue.md)
- Kind: `Properties`
- Members: `2`

Represents a resolved build secret with its value and type.

## Type

- Name: `Type`
- Modifiers: `get; init`
- Returns: [BuildImageSecretType](/reference/api/csharp/aspire.hosting/buildimagesecrettype.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/BuildImageSecretValue.cs)

The type of the build secret, indicating whether it is environment-based or file-based.

```csharp
public BuildImageSecretType Type { get; init; }
```

## Value

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

The resolved secret value. For [BuildImageSecretType.Environment](/reference/api/csharp/aspire.hosting/buildimagesecrettype/fields.md) secrets, this is the secret content. For [BuildImageSecretType.File](/reference/api/csharp/aspire.hosting/buildimagesecrettype/fields.md) secrets, this is the file path.

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