Class InterfaceReference
A reference to an interface URI, e.g. for specifying which interface this feed implements or by which interface it is replaced.
Implements
Inherited Members
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
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
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
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. |