# CommandProgressOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [CommandProgressOptions](/reference/api/csharp/aspire.hosting/commandprogressoptions.md)
- Kind: `Properties`
- Members: `3`

Options for displaying a progress dialog while a command is executing.

<a id="hidecancelbutton"></a>

## HideCancelButton

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

Gets or sets a value indicating whether the cancel button is hidden in the progress dialog.

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

## Remarks

When `false` (the default), a cancel button is shown. Clicking it cancels the command via the [ExecuteCommandContext.CancellationToken](/reference/api/csharp/aspire.hosting/executecommandcontext/properties.md#cancellationtoken). When `true`, no cancel button is displayed and the user cannot cancel the operation from the dialog.

<a id="message"></a>

## Message

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

Gets or sets the message to display in the progress dialog.

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

## Remarks

When not `null` or empty, a progress dialog is displayed while the command executes.

<a id="title"></a>

## Title

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

Gets or sets the optional title of the progress dialog.

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