Table of Contents

Class ExternalRetrievalMethod

Namespace
ZeroInstall.Services.Native
Assembly
ZeroInstall.Services.dll

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

public sealed class ExternalRetrievalMethod : RetrievalMethod, IEquatable<FeedElement>, ICloneable<RetrievalMethod>, IEquatable<ExternalRetrievalMethod>
Inheritance
object
ExternalRetrievalMethod
Implements
Inherited Members

Constructors

ExternalRetrievalMethod()

public ExternalRetrievalMethod()

Properties

ConfirmationQuestion

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

public string? ConfirmationQuestion { get; set; }

Property Value

string

Distro

The name of the distribution this package came from.

public string? Distro { get; set; }

Property Value

string

Install

A function to call to install this package.

public Action? Install { get; set; }

Property Value

Action

PackageID

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

public string? PackageID { get; set; }

Property Value

string

Size

The download size in bytes.

public long Size { get; set; }

Property Value

long

Methods

Clone()

Creates a deep copy of this instance.

public override RetrievalMethod Clone()

Returns

RetrievalMethod

CloneExternalRetrievalMethod()

Creates a deep copy of this ExternalRetrievalMethod instance.

public ExternalRetrievalMethod CloneExternalRetrievalMethod()

Returns

ExternalRetrievalMethod

The new copy of the ExternalRetrievalMethod.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(ExternalRetrievalMethod?, ExternalRetrievalMethod?)

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

public static bool operator ==(ExternalRetrievalMethod? left, ExternalRetrievalMethod? right)

Parameters

left ExternalRetrievalMethod

The left object

right ExternalRetrievalMethod

The right object

Returns

bool

true if the objects are equal; otherwise, false.

operator !=(ExternalRetrievalMethod?, ExternalRetrievalMethod?)

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

public static bool operator !=(ExternalRetrievalMethod? left, ExternalRetrievalMethod? right)

Parameters

left ExternalRetrievalMethod

The left object

right ExternalRetrievalMethod

The right object

Returns

bool

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

See Also