Show / Hide Table of Contents

Class AppEntry

Represents an application in the AppList identified by its interface URI.

Inheritance
Object
XmlUnknown
AppEntry
Implements
IEquatable<XmlUnknown>
IMergeable<AppEntry>
IEquatable<AppEntry>
ICloneable<AppEntry>
Inherited Members
XmlUnknown.UnknownAttributes
XmlUnknown.UnknownElements
XmlUnknown.EnsureAttribute(Object, String)
XmlUnknown.EnsureAttributeSafeID(String, String)
XmlUnknown.ToShortXml()
XmlUnknown.Equals(XmlUnknown)
Namespace: ZeroInstall.DesktopIntegration
Assembly: ZeroInstall.DesktopIntegration.dll
Syntax
public sealed class AppEntry : XmlUnknown

Constructors

AppEntry()

Declaration
public AppEntry()

Properties

AccessPoints

A set of AccessPointss to be registered in the desktop environment. Is null if no desktop integration has been performed yet.

Declaration
public AccessPointList AccessPoints { get; set; }
Property Value
Type Description
AccessPointList

AutoUpdate

Set to true to automatically download the newest available version of the application as a regular background task. Update checks will still be performed when the application is launched when set to false.

Declaration
public bool AutoUpdate { get; set; }
Property Value
Type Description
Boolean

CapabilityLists

A set of Capability lists to be registered in the desktop environment. Only compatible architectures are handled.

Declaration
public List<CapabilityList> CapabilityLists { get; }
Property Value
Type Description
List<CapabilityList>

EffectiveRequirements

The Requirements if it is set, otherwise a basic reference to InterfaceUri.

Declaration
public Requirements EffectiveRequirements { get; }
Property Value
Type Description
Requirements

Hostname

A regular expression a computer's hostname must match for this entry to be applied. Enables machine-specific entry filtering.

Declaration
public string Hostname { get; set; }
Property Value
Type Description
String

InterfaceUri

The URI or local path of the interface defining the application or the pet-name if Requirements is set.

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

InterfaceUriString

Used for XML serialization.

Declaration
public string InterfaceUriString { get; set; }
Property Value
Type Description
String
See Also
InterfaceUri

Name

The name of the application. Usually equal to Name.

Declaration
public string Name { get; set; }
Property Value
Type Description
String

Requirements

A set of requirements/restrictions imposed by the user on the implementation selection process.

Declaration
public Requirements Requirements { get; set; }
Property Value
Type Description
Requirements

RequirementsJson

Used for XML+JSON serialization.

Declaration
public string RequirementsJson { get; set; }
Property Value
Type Description
String
See Also
Requirements

Timestamp

Declaration
public DateTime Timestamp { get; set; }
Property Value
Type Description
DateTime

TimestampUnix

The time this entry was last modified encoded as Unix time (number of seconds since the epoch).

Declaration
public long TimestampUnix { get; set; }
Property Value
Type Description
Int64
Remarks

This value is ignored by clone and equality methods.

Methods

Clone()

Creates a deep copy of this AppEntry instance.

Declaration
public AppEntry Clone()
Returns
Type Description
AppEntry

The new copy of the AppEntry.

Equals(Object)

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

Equals(AppEntry)

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

GetHashCode()

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

LookupCapability<T>(String)

Retrieves the first Capability that matches a specific type and ID and is compatible with CurrentSystem.

Declaration
public T LookupCapability<T>(string id)
    where T : Capability
Parameters
Type Name Description
String id

The ID to match.

Returns
Type Description
T

The first matching Capability.

Type Parameters
Name Description
T

The capability type to match.

Exceptions
Type Condition
KeyNotFoundException

No capability matching id and T was found.

ToString()

Creates string representation suitable for console output.

Declaration
public override string ToString()
Returns
Type Description
String

Operators

Equality(AppEntry, AppEntry)

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

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

The left object

AppEntry right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(AppEntry, AppEntry)

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

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

The left object

AppEntry right

The right object

Returns
Type Description
Boolean

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

Implements

System.IEquatable<T>
IMergeable<T>
System.IEquatable<T>
ICloneable<T>
In This Article
Back to top Copyright Bastian Eicher et al