Zero Install .NET API 2.20.0
ZeroInstall.Model.TargetBase Class Reference

Abstract base class for Element and FeedReference. Contains language and architecture parameters. More...

Inheritance diagram for ZeroInstall.Model.TargetBase:
ZeroInstall.Model.FeedElement ZeroInstall.Model.XmlUnknown ZeroInstall.Model.Element ZeroInstall.Model.FeedReference ZeroInstall.Model.Group ZeroInstall.Model.ImplementationBase ZeroInstall.Model.PackageImplementation ZeroInstall.Model.Implementation ZeroInstall.Model.Selection.ImplementationSelection ZeroInstall.Services.Native.ExternalImplementation

Public Member Functions

override int GetHashCode ()
 
- Public Member Functions inherited from ZeroInstall.Model.FeedElement
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 ()
 

Protected Member Functions

bool Equals (TargetBase? other)
 
- Protected Member Functions inherited from ZeroInstall.Model.FeedElement
bool Equals (FeedElement? other)
 
- 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)
 

Static Protected Member Functions

static void CloneFromTo (TargetBase from, TargetBase to)
 Copies all known values from one instance to another. Helper method for instance cloning.
 
- Static Protected Member Functions inherited from ZeroInstall.Model.FeedElement
static bool FilterMismatch (IRecipeStep step)
 Checks whether an element passes the specified IfZeroInstallVersion restriction, if any.
 

Properties

LanguageSet?? Languages [getset]
 The natural language(s) which an Implementation supports. More...
 
Architecture Architecture [getset]
 For platform-specific binaries, the platform for which an Implementation was compiled. More...
 
string LanguagesString [getset]
 Used for XML serialization. More...
 
string ArchitectureString [getset]
 Used for XML serialization. More...
 
- Properties inherited from ZeroInstall.Model.FeedElement
VersionRangeIfZeroInstallVersion [getset]
 Only process this element if the current Zero Install version matches the range.
 
string??? IfZeroInstallVersionString [getset]
 Used for XML serialization. More...
 

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.
 
- Static Package Functions inherited from ZeroInstall.Model.FeedElement
static bool FilterMismatch< T > (T element)
 Checks whether an element passes the specified IfZeroInstallVersion restriction, if any. More...
 

Detailed Description

Abstract base class for Element and FeedReference. Contains language and architecture parameters.

Property Documentation

◆ Architecture

Architecture ZeroInstall.Model.TargetBase.Architecture
getset

For platform-specific binaries, the platform for which an Implementation was compiled.

The injector knows that certain platforms are backwards-compatible with others, so binaries with arch="Linux-i486" will still be available on Linux-i686 machines, for example.

◆ ArchitectureString

string ZeroInstall.Model.TargetBase.ArchitectureString
getset

Used for XML serialization.

See also
Architecture

◆ Languages

LanguageSet?? ZeroInstall.Model.TargetBase.Languages
getset

The natural language(s) which an Implementation supports.

For example, the value "en_GB fr" would be used for a package supporting British English and French.

◆ LanguagesString

string ZeroInstall.Model.TargetBase.LanguagesString
getset

Used for XML serialization.

See also
Languages

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