Skip to content
Docs Try Aspire

EnvironmentVariableSnapshot Methods

Record Methods 8 members
A snapshot of an environment variable.
public record EnvironmentVariableSnapshot
{
public EnvironmentVariableSnapshot <Clone>$()
{
// ...
}
}
Deconstruct(string, string?, bool) Section titled Deconstruct(string, string?, bool)
public record EnvironmentVariableSnapshot
{
public void Deconstruct(
out string Name,
out string? Value,
out bool IsFromSpec)
{
// ...
}
}
Name string
Value string?
IsFromSpec bool
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record EnvironmentVariableSnapshot
{
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(EnvironmentVariableSnapshot?) Section titled Equals(EnvironmentVariableSnapshot?) bool
Indicates whether the current object is equal to another object of the same type.
public record EnvironmentVariableSnapshot
{
public bool Equals(
EnvironmentVariableSnapshot? other)
{
// ...
}
}
other EnvironmentVariableSnapshot? 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 EnvironmentVariableSnapshot
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?) Section titled op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?) static bool
public record EnvironmentVariableSnapshot
{
public static bool operator ==(
EnvironmentVariableSnapshot? left,
EnvironmentVariableSnapshot? right)
{
// ...
}
}
op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?) Section titled op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?) static bool
public record EnvironmentVariableSnapshot
{
public static bool operator !=(
EnvironmentVariableSnapshot? left,
EnvironmentVariableSnapshot? right)
{
// ...
}
}
ToString Section titled ToString override string
Returns a string that represents the current object.
public record EnvironmentVariableSnapshot
{
public override string ToString()
{
// ...
}
}
string A string that represents the current object.