Class ImplementationPreferences
- Namespace
- ZeroInstall.Model.Preferences
- Assembly
- ZeroInstall.Model.dll
Stores user-specific preferences for an Implementation.
[Equatable]
public sealed class ImplementationPreferences : XmlUnknown, IEquatable<XmlUnknown>, ICloneable<ImplementationPreferences>, IEquatable<ImplementationPreferences>
- Inheritance
-
ImplementationPreferences
- Implements
- Inherited Members
Properties
ID
A unique identifier for the implementation. Corresponds to ID.
public required string ID { get; set; }
Property Value
IsSuperfluous
Indicates whether this configuration object stores no information other than the ID and is thus superfluous.
[Browsable(false)]
[IgnoreEquality]
public bool IsSuperfluous { get; }
Property Value
RolloutPercentage
A random number used to compare against RolloutPercentage.
[Browsable(false)]
public int RolloutPercentage { get; set; }
Property Value
UserStability
A user-specified override for Stability specified in the feed.
public Stability UserStability { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this ImplementationPreferences instance.
public ImplementationPreferences Clone()
Returns
- ImplementationPreferences
The new copy of the ImplementationPreferences.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns the preferences in the form "ImplementationPreferences: ID". Not safe for parsing!
public override string ToString()
Returns
Operators
operator ==(ImplementationPreferences?, ImplementationPreferences?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(ImplementationPreferences? left, ImplementationPreferences? right)
Parameters
left
ImplementationPreferencesThe left object
right
ImplementationPreferencesThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(ImplementationPreferences?, ImplementationPreferences?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(ImplementationPreferences? left, ImplementationPreferences? right)
Parameters
left
ImplementationPreferencesThe left object
right
ImplementationPreferencesThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.