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
-
objectExternalRetrievalMethod
- 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
Distro
The name of the distribution this package came from.
public string? Distro { get; set; }
Property Value
Install
A function to call to install this package.
public Action? Install { get; set; }
Property Value
PackageID
The package name, in a form recognised by the external package manager.
public string? PackageID { get; set; }
Property Value
Size
The download size in bytes.
public long Size { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override RetrievalMethod Clone()
Returns
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
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
leftExternalRetrievalMethodThe left object
rightExternalRetrievalMethodThe 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
leftExternalRetrievalMethodThe left object
rightExternalRetrievalMethodThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.