# CommandResultData

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResourceCommandAnnotation.cs)

Represents a value produced by a command.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class CommandResultData
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [CommandResultData](/reference/api/csharp/aspire.hosting/commandresultdata/constructors.md#constructor)

## Properties

- [DisplayImmediately](/reference/api/csharp/aspire.hosting/commandresultdata/properties.md#displayimmediately) : `bool` `get; init` -- When `true`, the dashboard will immediately display the value in a dialog when the command completes.
- [Format](/reference/api/csharp/aspire.hosting/commandresultdata/properties.md#format) : [CommandResultFormat](/reference/api/csharp/aspire.hosting/commandresultformat.md) `get; init` -- The format of the [CommandResultData.Value](/reference/api/csharp/aspire.hosting/commandresultdata/properties.md#value) data.
- [Value](/reference/api/csharp/aspire.hosting/commandresultdata/properties.md#value) : `string` `get; init` -- The value data.
