# ResourceCommandSnapshot Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceCommandSnapshot](/reference/api/csharp/aspire.hosting/resourcecommandsnapshot.md)
- Kind: `Properties`
- Members: `9`

A snapshot of a resource command.

## ConfirmationMessage

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

When a confirmation message is specified, the UI will prompt with an OK/Cancel dialog and the confirmation message before starting the command.

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

## DisplayDescription

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

Optional description of the command, to be shown in the UI. Could be used as a tooltip. May be localized.

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

## DisplayName

- Name: `DisplayName`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The display name visible in UI for the command.

```csharp
public string DisplayName { get; init; }
```

## IconName

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

The icon name for the command. The name should be a valid FluentUI icon name. https://aka.ms/fluentui-system-icons

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

## IconVariant

- Name: `IconVariant`
- Modifiers: `nullable` `get; init`
- Returns: [IconVariant?](/reference/api/csharp/aspire.hosting/iconvariant.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The icon variant.

```csharp
public IconVariant? IconVariant { get; init; }
```

## IsHighlighted

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

A flag indicating whether the command is highlighted in the UI.

```csharp
public bool IsHighlighted { get; init; }
```

## Name

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

The name of command. The name uniquely identifies the command.

```csharp
public string Name { get; init; }
```

## Parameter

- Name: `Parameter`
- Modifiers: `nullable` `get; init`
- Returns: `object?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

Optional parameter that configures the command in some way. Clients must return any value provided by the server when invoking the command.

```csharp
public object? Parameter { get; init; }
```

## State

- Name: `State`
- Modifiers: `get; init`
- Returns: [ResourceCommandState](/reference/api/csharp/aspire.hosting/resourcecommandstate.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The state of the command.

```csharp
public ResourceCommandState State { get; init; }
```
