Class RetrievalMethod
- Namespace
- ZeroInstall.Model
- Assembly
- ZeroInstall.Model.dll
A retrieval method is a way of getting a copy of an Implementation.
public abstract class RetrievalMethod : FeedElement, IEquatable<FeedElement>, ICloneable<RetrievalMethod>
- Inheritance
-
objectRetrievalMethod
- Implements
- Derived
- Inherited Members
Methods
Clone()
Creates a deep copy of this instance.
public abstract RetrievalMethod Clone()
Returns
CloneFromTo(RetrievalMethod, RetrievalMethod)
Copies all members declared by RetrievalMethod from one instance to another.
protected static void CloneFromTo(RetrievalMethod from, RetrievalMethod to)
Parameters
fromRetrievalMethodtoRetrievalMethod
Normalize(FeedUri?)
Sets missing default values and handles legacy elements.
public virtual void Normalize(FeedUri? feedUri = null)
Parameters
feedUriFeedUriThe feed the data was originally loaded from.
Exceptions
- UriFormatException
Href is relative and
feedUriis a remote URI.- InvalidDataException
A required property is not set or invalid.