Show / Hide Table of Contents

Class InterfaceReference

A reference to an interface URI, e.g. for specifying which interface this feed implements or by which interface it is replaced.

Inheritance
Object
XmlUnknown
FeedElement
InterfaceReference
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<InterfaceReference>
IEquatable<InterfaceReference>
Inherited Members
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 InterfaceReference : FeedElement

Constructors

InterfaceReference()

Declaration
public InterfaceReference()

Properties

Target

The URI used to locate the interface.

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

TargetString

Used for XML serialization and PropertyGrid.

Declaration
public string TargetString { get; set; }
Property Value
Type Description
String
See Also
Target

Methods

Clone()

Creates a deep copy of this InterfaceReference instance.

Declaration
public InterfaceReference Clone()
Returns
Type Description
InterfaceReference

The new copy of the InterfaceReference.

Equals(Object)

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

Equals(InterfaceReference)

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

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
FeedElement.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 interface reference in the form "Target". Not safe for parsing!

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(InterfaceReference, InterfaceReference)

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

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

The left object

InterfaceReference right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(InterfaceReference, InterfaceReference)

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

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

The left object

InterfaceReference right

The right object

Returns
Type Description
Boolean

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

Implements

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

See Also

FeedFor
ReplacedBy
In This Article
Back to top Copyright Bastian Eicher et al