Zero Install .NET API 2.20.0
ZeroInstall.Model.ArgBase Class Referenceabstract

Common base class for Arg and ForEachArgs. More...

Inheritance diagram for ZeroInstall.Model.ArgBase:
ZeroInstall.Model.FeedElement NanoByte.Common.ICloneable< ArgBase > ZeroInstall.Model.XmlUnknown ZeroInstall.Model.Arg ZeroInstall.Model.ForEachArgs

Public Member Functions

abstract void Normalize ()
 Converts legacy elements, sets default values, etc.. More...
 
abstract ArgBase Clone ()
 Creates a deep copy of this ArgBase instance. More...
 
- 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 ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< ArgBase >
ArgBase Clone ()
 

Static Public Member Functions

static implicit operator ArgBase (string value)
 Convenience cast for turning strings into plain Args.
 

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

Detailed Description

Common base class for Arg and ForEachArgs.

Member Function Documentation

◆ Clone()

abstract ArgBase ZeroInstall.Model.ArgBase.Clone ( )
pure virtual

Creates a deep copy of this ArgBase instance.

Returns
The new copy of the ArgBase.

Implemented in ZeroInstall.Model.Arg, and ZeroInstall.Model.ForEachArgs.

◆ Normalize()

abstract void ZeroInstall.Model.ArgBase.Normalize ( )
pure virtual

Converts legacy elements, sets default values, etc..

Exceptions
InvalidDataExceptionA required property is not set or invalid.

Implemented in ZeroInstall.Model.Arg, and ZeroInstall.Model.ForEachArgs.


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