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.
[Equatable]
public sealed class ExternalRetrievalMethod : RetrievalMethod, IEquatable<XmlUnknown>, IEquatable<FeedElement>, ICloneable<RetrievalMethod>, IEquatable<ExternalRetrievalMethod>
- Inheritance
-
ExternalRetrievalMethod
- Implements
- Inherited Members
- Extension Methods
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 ExternalRetrievalMethod instance.
public override RetrievalMethod Clone()
Returns
- RetrievalMethod
The new copy of the ExternalRetrievalMethod.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
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
ExternalRetrievalMethodThe left object
right
ExternalRetrievalMethodThe 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
ExternalRetrievalMethodThe left object
right
ExternalRetrievalMethodThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.