Skip to content
DocsTry Aspire
DocsTry

ResourceCommandSnapshot Methods

RecordMethods8 members
A snapshot of a resource command.
public record ResourceCommandSnapshot
{
public ResourceCommandSnapshot <Clone>$()
{
// ...
}
}
Deconstruct(string, ResourceCommandState, string, string?, object?, string?, string?, IconVariant?, bool)Section titled Deconstruct(string, ResourceCommandState, string, string?, object?, string?, string?, IconVariant?, bool)
public record ResourceCommandSnapshot
{
public void Deconstruct(
out string Name,
out ResourceCommandState State,
out string DisplayName,
out string? DisplayDescription,
out object? Parameter,
out string? ConfirmationMessage,
out string? IconName,
out IconVariant? IconVariant,
out bool IsHighlighted)
{
// ...
}
}
Namestring
DisplayNamestring
DisplayDescriptionstring?
Parameterobject?
ConfirmationMessagestring?
IconNamestring?
IconVariantIconVariant?
IsHighlightedbool
Equals(object?)Section titled Equals(object?)overridebool
Determines whether the specified object is equal to the current object.
public record ResourceCommandSnapshot
{
public override bool Equals(
object? obj)
{
// ...
}
}
objobject?The object to compare with the current object.
booltrue if the specified object is equal to the current object; otherwise, false.
Equals(ResourceCommandSnapshot?)Section titled Equals(ResourceCommandSnapshot?)bool
Indicates whether the current object is equal to another object of the same type.
public record ResourceCommandSnapshot
{
public bool Equals(
ResourceCommandSnapshot? other)
{
// ...
}
}
otherResourceCommandSnapshot?An object to compare with this object.
booltrue if the current object is equal to the other parameter; otherwise, false.
GetHashCodeSection titled GetHashCodeoverrideint
Serves as the default hash function.
public record ResourceCommandSnapshot
{
public override int GetHashCode()
{
// ...
}
}
intA hash code for the current object.
op_Equality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)Section titled op_Equality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)staticbool
public record ResourceCommandSnapshot
{
public static bool operator ==(
ResourceCommandSnapshot? left,
ResourceCommandSnapshot? right)
{
// ...
}
}
op_Inequality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)Section titled op_Inequality(ResourceCommandSnapshot?, ResourceCommandSnapshot?)staticbool
public record ResourceCommandSnapshot
{
public static bool operator !=(
ResourceCommandSnapshot? left,
ResourceCommandSnapshot? right)
{
// ...
}
}
ToStringSection titled ToStringoverridestring
Returns a string that represents the current object.
public record ResourceCommandSnapshot
{
public override string ToString()
{
// ...
}
}
stringA string that represents the current object.