Skip to content
DocsTry Aspire
DocsTry

EnvironmentVariableSnapshot Methods

RecordMethods8 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)
{
// ...
}
}
Namestring
Valuestring?
IsFromSpecbool
Equals(object?)Section titled Equals(object?)overridebool
Determines whether the specified object is equal to the current object.
public record EnvironmentVariableSnapshot
{
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(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)
{
// ...
}
}
otherEnvironmentVariableSnapshot?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 EnvironmentVariableSnapshot
{
public override int GetHashCode()
{
// ...
}
}
intA hash code for the current object.
op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)Section titled op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)staticbool
public record EnvironmentVariableSnapshot
{
public static bool operator ==(
EnvironmentVariableSnapshot? left,
EnvironmentVariableSnapshot? right)
{
// ...
}
}
op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)Section titled op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)staticbool
public record EnvironmentVariableSnapshot
{
public static bool operator !=(
EnvironmentVariableSnapshot? left,
EnvironmentVariableSnapshot? right)
{
// ...
}
}
ToStringSection titled ToStringoverridestring
Returns a string that represents the current object.
public record EnvironmentVariableSnapshot
{
public override string ToString()
{
// ...
}
}
stringA string that represents the current object.