ResourceCommandSnapshot
Record sealed net10.0
A snapshot of a resource command.
namespace Aspire.Hosting.ApplicationModel;
public sealed record ResourceCommandSnapshot : System.IEquatable<Aspire.Hosting.ApplicationModel.ResourceCommandSnapshot>{ // ...} IEquatable<ResourceCommandSnapshot>
18 members
Constructors1
Section titled ConstructorsProperties9
Section titled PropertiesConfirmationMessageget; initstring? When a confirmation message is specified, the UI will prompt with an OK/Cancel dialog and the confirmation message before starting the command.
DisplayDescriptionget; initstring? Optional description of the command, to be shown in the UI. Could be used as a tooltip. May be localized.
DisplayNameget; initstringThe display name visible in UI for the command.
IconNameget; initstring?The icon name for the command. The name should be a valid FluentUI icon name. https://aka.ms/fluentui-system-icons
IconVariantget; initThe icon variant.
IsHighlightedget; initboolA flag indicating whether the command is highlighted in the UI.
Nameget; initstringThe name of command. The name uniquely identifies the command.
Parameterget; initobject? Optional parameter that configures the command in some way. Clients must return any value provided by the server when invoking the command.
Stateget; initThe state of the command.
Methods8
Section titled Methods<Clone>$Deconstruct(string, ResourceCommandState, string, string?, object?, string?, string?, IconVariant?, bool)Equals(object?)boolDetermines whether the specified object is equal to the current object.
Equals(ResourceCommandSnapshot?)boolIndicates whether the current object is equal to another object of the same type.
GetHashCodeintServes as the default hash function.
op_Equality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)staticboolop_Inequality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)staticboolToStringstringReturns a string that represents the current object.