Show / Hide Table of Contents

Class FeedReference

A linked feed that contains more implementations of this interface. Is treated by the solver as if it were part of the main feed.

Inheritance
Object
XmlUnknown
FeedElement
TargetBase
FeedReference
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
IEquatable<TargetBase>
ICloneable<FeedReference>
IEquatable<FeedReference>
Inherited Members
TargetBase.CloneFromTo(TargetBase, TargetBase)
TargetBase.Equals(TargetBase)
TargetBase.Languages
TargetBase.Architecture
TargetBase.LanguagesString
TargetBase.ArchitectureString
FeedElement.FilterMismatch<T>(T)
FeedElement.FilterMismatch(IRecipeStep)
FeedElement.Equals(FeedElement)
FeedElement.IfZeroInstallVersion
FeedElement.IfZeroInstallVersionString
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
Namespace: ZeroInstall.Model
Assembly: ZeroInstall.Model.dll
Syntax
public sealed class FeedReference : TargetBase

Constructors

FeedReference()

Declaration
public FeedReference()

Properties

Source

The URL or local path used to locate the feed.

Declaration
public FeedUri Source { get; set; }
Property Value
Type Description
FeedUri

SourceString

Used for XML serialization.

Declaration
public string SourceString { get; set; }
Property Value
Type Description
String
See Also
Source

Methods

Clone()

Creates a deep copy of this FeedReference instance.

Declaration
public FeedReference Clone()
Returns
Type Description
FeedReference

The new copy of the FeedReference.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
TargetBase.Equals(Object)

Equals(FeedReference)

Declaration
public bool Equals(FeedReference other)
Parameters
Type Name Description
FeedReference other
Returns
Type Description
Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
TargetBase.GetHashCode()

Normalize()

Converts legacy elements, sets default values, etc..

Declaration
public void Normalize()
Exceptions
Type Condition
InvalidDataException

A required property is not set or invalid.

ToString()

Returns the feed reference in the form "Source (Architecture, Languages)". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(FeedReference, FeedReference)

Indicates whether the object on the left is equal to the object on the right.

Declaration
public static bool operator ==(FeedReference left, FeedReference right)
Parameters
Type Name Description
FeedReference left

The left object

FeedReference right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(FeedReference, FeedReference)

Indicates whether the object on the left is not equal to the object on the right.

Declaration
public static bool operator !=(FeedReference left, FeedReference right)
Parameters
Type Name Description
FeedReference left

The left object

FeedReference right

The right object

Returns
Type Description
Boolean

true if the objects are not equal; otherwise, false.

Implements

System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
ICloneable<T>
System.IEquatable<T>

See Also

Feeds
In This Article
Back to top Copyright Bastian Eicher et al