ResourceCommandSnapshot Constructors
RecordConstructors1 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) { // ... }}Parameters
NamestringThe name of command. The name uniquely identifies the command.StateResourceDisplayName stringThe 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. Parameterobject? Obsolete 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-iconsIconVariant IconIsHighlighted boolA flag indicating whether the command is highlighted in the UI.