Skip to content
Docs Try Aspire

ResourceCommandSnapshot Constructors

Record Constructors 1 member
A snapshot of a resource command.
Constructor(string, ResourceCommandState, string, string?, object?, string?, string?, IconVariant?, bool) Section titled Constructor(string, ResourceCommandState, string, string?, object?, string?, string?, IconVariant?, bool)
A snapshot of a resource command.
public record ResourceCommandSnapshot
{
public ResourceCommandSnapshot(
string Name,
ResourceCommandState State,
string DisplayName,
string? DisplayDescription,
object? Parameter,
string? ConfirmationMessage,
string? IconName,
IconVariant? IconVariant,
bool IsHighlighted)
{
// ...
}
}
Name string The name of command. The name uniquely identifies the command.
State ResourceCommandState The state of the command.
DisplayName string The display name visible in UI for the command.
DisplayDescription string? Optional description of the command, to be shown in the UI. Could be used as a tooltip. May be localized.
Parameter object? Optional parameter that configures the command in some way. Clients must return any value provided by the server when invoking the command.
ConfirmationMessage string? When a confirmation message is specified, the UI will prompt with an OK/Cancel dialog and the confirmation message before starting the command.
IconName string? The icon name for the command. The name should be a valid FluentUI icon name. https://aka.ms/fluentui-system-icons
IconVariant IconVariant? The icon variant.
IsHighlighted bool A flag indicating whether the command is highlighted in the UI.