Class ExternalRetrievalMethod
Retrieves an implementation by installing it via an external package manager rather than Zero Install itself.
Implements
Inherited Members
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
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
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
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. |