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) { // ... }}Parameters
NamestringValuestring?IsFromSpecboolDetermines whether the specified object is equal to the current object.
public record EnvironmentVariableSnapshot{ public override bool Equals( object? obj) { // ... }}Parameters
objobject?The object to compare with the current object.Returns
booltrue if the specified object is equal to the current object; otherwise, false.Indicates whether the current object is equal to another object of the same type.
public record EnvironmentVariableSnapshot{ public bool Equals( EnvironmentVariableSnapshot? other) { // ... }}Parameters
otherEnvironmentVariableSnapshot?An object to compare with this object.Returns
booltrue if the current object is equal to the other parameter; otherwise, false.Serves as the default hash function.
public record EnvironmentVariableSnapshot{ public override int GetHashCode() { // ... }}Returns
intA hash code for the current object.op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)Section titled op_Equality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)staticboolpublic record EnvironmentVariableSnapshot{ public static bool operator ==( EnvironmentVariableSnapshot? left, EnvironmentVariableSnapshot? right) { // ... }}Parameters
op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)Section titled op_Inequality(EnvironmentVariableSnapshot?, EnvironmentVariableSnapshot?)staticboolpublic record EnvironmentVariableSnapshot{ public static bool operator !=( EnvironmentVariableSnapshot? left, EnvironmentVariableSnapshot? right) { // ... }}Parameters
Returns a string that represents the current object.
public record EnvironmentVariableSnapshot{ public override string ToString() { // ... }}Returns
stringA string that represents the current object.