Skip to content
Docs Try Aspire

ResourceCommandSnapshot Methods

Record Methods 8 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)
{
// ...
}
}
Name string
DisplayName string
DisplayDescription string?
Parameter object?
ConfirmationMessage string?
IconName string?
IconVariant IconVariant?
IsHighlighted bool
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record ResourceCommandSnapshot
{
public override bool Equals(
object? obj)
{
// ...
}
}
obj object? The object to compare with the current object.
bool true 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)
{
// ...
}
}
other ResourceCommandSnapshot? An object to compare with this object.
bool true if the current object is equal to the other parameter; otherwise, false.
GetHashCode Section titled GetHashCode override int
Serves as the default hash function.
public record ResourceCommandSnapshot
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(ResourceCommandSnapshot?, ResourceCommandSnapshot?) Section titled op_Equality(ResourceCommandSnapshot?, ResourceCommandSnapshot?) static bool
public record ResourceCommandSnapshot
{
public static bool operator ==(
ResourceCommandSnapshot? left,
ResourceCommandSnapshot? right)
{
// ...
}
}
op_Inequality(ResourceCommandSnapshot?, ResourceCommandSnapshot?) Section titled op_Inequality(ResourceCommandSnapshot?, ResourceCommandSnapshot?) static bool
public record ResourceCommandSnapshot
{
public static bool operator !=(
ResourceCommandSnapshot? left,
ResourceCommandSnapshot? right)
{
// ...
}
}
ToString Section titled ToString override string
Returns a string that represents the current object.
public record ResourceCommandSnapshot
{
public override string ToString()
{
// ...
}
}
string A string that represents the current object.