Skip to content
Docs Try Aspire

ResourceStateSnapshot Methods

Record Methods 9 members
A snapshot of the resource state
public record ResourceStateSnapshot
{
public ResourceStateSnapshot <Clone>$()
{
// ...
}
}
public record ResourceStateSnapshot
{
public void Deconstruct(
out string Text,
out string? Style)
{
// ...
}
}
Text string
Style string?
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record ResourceStateSnapshot
{
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(ResourceStateSnapshot?) Section titled Equals(ResourceStateSnapshot?) bool
Indicates whether the current object is equal to another object of the same type.
public record ResourceStateSnapshot
{
public bool Equals(
ResourceStateSnapshot? other)
{
// ...
}
}
other ResourceStateSnapshot? 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 ResourceStateSnapshot
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(ResourceStateSnapshot?, ResourceStateSnapshot?) Section titled op_Equality(ResourceStateSnapshot?, ResourceStateSnapshot?) static bool
public record ResourceStateSnapshot
{
public static bool operator ==(
ResourceStateSnapshot? left,
ResourceStateSnapshot? right)
{
// ...
}
}
Convert text to state snapshot. The style will be null by default
public record ResourceStateSnapshot
{
public static implicit operator ResourceStateSnapshot?(
string? s)
{
// ...
}
}
s string?
op_Inequality(ResourceStateSnapshot?, ResourceStateSnapshot?) Section titled op_Inequality(ResourceStateSnapshot?, ResourceStateSnapshot?) static bool
public record ResourceStateSnapshot
{
public static bool operator !=(
ResourceStateSnapshot? left,
ResourceStateSnapshot? right)
{
// ...
}
}
ToString Section titled ToString override string
Returns a string that represents the current object.
public record ResourceStateSnapshot
{
public override string ToString()
{
// ...
}
}
string A string that represents the current object.