# ParameterResource Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ParameterResource](/reference/api/csharp/aspire.hosting/parameterresource.md)
- Kind: `Properties`
- Members: `7`

Represents a parameter resource.

## Default

- Name: `Default`
- Modifiers: `nullable` `get; set`
- Returns: [ParameterDefault?](/reference/api/csharp/aspire.hosting/parameterdefault.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ParameterResource.cs)

Represents how the default value of the parameter should be retrieved.

```csharp
public ParameterDefault? Default { get; set; }
```

## Description

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

Gets a description of the parameter resource.

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

## EnableDescriptionMarkdown

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

Gets or sets a value indicating whether the description should be rendered as Markdown.

```csharp
public bool EnableDescriptionMarkdown { get; set; }
```

## IsConnectionString

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

Gets or sets a value indicating whether the parameter is a connection string.

```csharp
public bool IsConnectionString { get; set; }
```

## Secret

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

Gets a value indicating whether the parameter is secret.

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

## Value

> **Obsolete:** Use GetValueAsync for async access or pass the ParameterResource directly to methods that accept it (e.g., environment variables).

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

Gets the value of the parameter.

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

## Remarks

This property is obsolete. Use [ParameterResource.GetValueAsync(CancellationToken)](/reference/api/csharp/aspire.hosting/parameterresource/methods.md#getvalueasync-cancellationtoken) for async access or pass the [ParameterResource](/reference/api/csharp/aspire.hosting/parameterresource.md) directly to methods that accept it (e.g., environment variables).

## ValueExpression

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

Gets the expression used in the manifest to reference the value of the parameter.

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