Show / Hide Table of Contents

Class ExternalRetrievalMethod

Retrieves an implementation by installing it via an external package manager rather than Zero Install itself.

Inheritance
Object
XmlUnknown
FeedElement
RetrievalMethod
ExternalRetrievalMethod
Implements
IEquatable<XmlUnknown>
IEquatable<FeedElement>
ICloneable<RetrievalMethod>
IEquatable<ExternalRetrievalMethod>
Inherited Members
RetrievalMethod.Normalize(FeedUri)
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.Services.Native
Assembly: ZeroInstall.Services.dll
Syntax
public sealed class ExternalRetrievalMethod : RetrievalMethod

Constructors

ExternalRetrievalMethod()

Declaration
public ExternalRetrievalMethod()

Properties

ConfirmationQuestion

A question the user shall be asked for confirmation before calling Install. null if no confirmation is required.

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

Distro

The name of the distribution this package came from.

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

Install

A function to call to install this package.

Declaration
public Action Install { get; set; }
Property Value
Type Description
Action

PackageID

The package name, in a form recognised by the external package manager.

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

Size

The download size in bytes.

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

Methods

Clone()

Creates a deep copy of this ExternalRetrievalMethod instance.

Declaration
public override RetrievalMethod Clone()
Returns
Type Description
RetrievalMethod

The new copy of the ExternalRetrievalMethod.

Overrides
RetrievalMethod.Clone()

Equals(Object)

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

Equals(ExternalRetrievalMethod)

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

GetHashCode()

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

Operators

Equality(ExternalRetrievalMethod, ExternalRetrievalMethod)

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

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

The left object

ExternalRetrievalMethod right

The right object

Returns
Type Description
Boolean

true if the objects are equal; otherwise, false.

Inequality(ExternalRetrievalMethod, ExternalRetrievalMethod)

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

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

The left object

ExternalRetrievalMethod 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>

Extension Methods

RetrievalMethodExtensions.CalculateDigest(RetrievalMethod, ICommandExecutor, ITaskHandler, ManifestFormat)

See Also

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