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

Represents a retrieval method that downloads data from the net. More...

Inheritance diagram for ZeroInstall.Model.DownloadRetrievalMethod:
ZeroInstall.Model.RetrievalMethod ZeroInstall.Model.IRecipeStep ZeroInstall.Model.FeedElement NanoByte.Common.ICloneable< RetrievalMethod > NanoByte.Common.ICloneable< IRecipeStep > ZeroInstall.Model.XmlUnknown ZeroInstall.Model.Archive ZeroInstall.Model.SingleFile

Public Member Functions

override void Normalize (FeedUri? feedUri=null)
 Converts legacy elements, sets default values, etc.. More...
 
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 ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< RetrievalMethod >
RetrievalMethod Clone ()
 
- Public Member Functions inherited from NanoByte.Common.ICloneable< IRecipeStep >
IRecipeStep Clone ()
 

Protected Member Functions

bool Equals (DownloadRetrievalMethod? 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)
 

Properties

Uri Href = default! [getset]
 The URL to download the file from. Relative URLs are only allowed in local feed files.
 
string? HrefString [getset]
 Used for XML serialization and PropertyGrid. More...
 
long Size [getset]
 The size of the file in bytes. The file must have the given size or it will be rejected.
 
virtual long DownloadSize [get]
 The effective size of the file on the server.
 
- 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 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...
 

Detailed Description

Represents a retrieval method that downloads data from the net.

Member Function Documentation

◆ Normalize()

override void ZeroInstall.Model.DownloadRetrievalMethod.Normalize ( FeedUri feedUri = null)
inline

Converts legacy elements, sets default values, etc..

Implements ZeroInstall.Model.IRecipeStep.

Property Documentation

◆ HrefString

string? ZeroInstall.Model.DownloadRetrievalMethod.HrefString
getset

Used for XML serialization and PropertyGrid.

See also
Href

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