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.
Implements
Inherited Members
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
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
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
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. |