Zero Install .NET API 2.20.0
ZeroInstall.Model.Preferences.ImplementationPreferences Class Reference

Stores user-specific preferences for an Implementation. More...

Inheritance diagram for ZeroInstall.Model.Preferences.ImplementationPreferences:
ZeroInstall.Model.XmlUnknown NanoByte.Common.ICloneable< ImplementationPreferences >

Public Member Functions

ImplementationPreferences Clone ()
 Creates a deep copy of this ImplementationPreferences instance. More...
 
override string ToString ()
 Returns the preferences in the form "ImplementationPreferences: ID". Not safe for parsing!
 
bool Equals (ImplementationPreferences? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Model.XmlUnknown
string ToShortXml ()
 Returns a shortened XML representation (with attributes but without child elements). More...
 
override int GetHashCode ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< ImplementationPreferences >
ImplementationPreferences Clone ()
 

Properties

string ID = default! [getset]
 A unique identifier for the implementation. Corresponds to ImplementationBase.ID.
 
Stability UserStability = Stability.Unset [getset]
 A user-specified override for Element.Stability specified in the feed.
 
int RolloutPercentage [getset]
 A random number used to compare against Element.RolloutPercentage.
 
bool IsSuperfluous [get]
 Indicates whether this configuration object stores no information other than the ID and is thus superfluous.
 

Additional Inherited Members

- Public Attributes inherited from ZeroInstall.Model.XmlUnknown
XmlAttribute?[] UnknownAttributes
 Contains any unknown additional XML attributes.
 
XmlElement?[] UnknownElements
 Contains any unknown additional XML elements.
 
- Protected Member Functions inherited from ZeroInstall.Model.XmlUnknown
void EnsureAttribute (object? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null). More...
 
void EnsureAttributeSafeID (string? value, string attributeName)
 Ensures that a value deserialized from an XML attribute is set (not null) and only contains alphanumeric characters, spaces ( ), dots (.), underscores (_), hyphens (-) and plus signs (+). More...
 
bool Equals (XmlUnknown? other)
 

Detailed Description

Stores user-specific preferences for an Implementation.

Member Function Documentation

◆ Clone()

ImplementationPreferences ZeroInstall.Model.Preferences.ImplementationPreferences.Clone ( )

Creates a deep copy of this ImplementationPreferences instance.

Returns
The new copy of the ImplementationPreferences.

The documentation for this class was generated from the following file: