# ResourceCommandSnapshot Properties

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

A snapshot of a resource command.

## Arguments

- Name: `Arguments`
- Modifiers: `get; init`
- Returns: [IReadOnlyList<InteractionInput>](/reference/api/csharp/aspire.hosting/interactioninput.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

Gets the invocation arguments accepted by the command.

```csharp
public IReadOnlyList<InteractionInput> Arguments { get; init; }
```

## ConfirmationMessage

- Name: `ConfirmationMessage`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

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

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

## Parameter

> **Obsolete:** Use Arguments to describe invocation arguments.

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

Obsolete 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/CustomResourceSnapshot.cs)

The state of the command.

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

## Visibility

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

Gets where the command is visible to users and clients.

```csharp
public ResourceCommandVisibility Visibility { get; init; }
```
