Class AddApp
- Namespace
- ZeroInstall.Commands.Desktop
- Assembly
- 0install.dll
Add an application to the AppList.
public class AddApp : AppCommand
- Inheritance
-
objectAddApp
- Inherited Members
Constructors
AddApp(ICommandHandler)
Common base class for commands that manage an AppList.
public AddApp(ICommandHandler handler)
Parameters
handlerICommandHandler
Fields
AddedNonCatalogAppWindowMessageID
The window message ID (for use with BroadcastMessage(int)) that signals that an application that is not listed in the Catalog was added.
public static readonly int AddedNonCatalogAppWindowMessageID
Field Value
AltName
public const string AltName = "add-app"
Field Value
Name
public const string Name = "add"
Field Value
Properties
AdditionalArgsMax
The maximum number of AdditionalArgs allowed. Checked in Parse(IReadOnlyList<string>).
protected override int AdditionalArgsMax { get; }
Property Value
BackgroundDownloadArgs
Additional arguments to pass to the command started by ZeroInstall.Commands.Desktop.IntegrationCommand.BackgroundDownload(ZeroInstall.Model.FeedUri).
protected override IEnumerable<string> BackgroundDownloadArgs { get; }
Property Value
Description
A short description of what this command does.
public override string Description { get; }
Property Value
Usage
The additional arguments to be displayed after the command name in the help text.
public override string Usage { get; }
Property Value
Methods
ExecuteHelper()
Template method that performs the actual operation.
protected override ExitCode ExecuteHelper()
Returns
- ExitCode
The exit status code to end the process with.
Parse(IReadOnlyList<string>)
Parses command-line arguments and stores the result in the command.
public override void Parse(IReadOnlyList<string> args)
Parameters
argsIReadOnlyList<string>The command-line arguments to be parsed.
Exceptions
- OperationCanceledException
The user asked to see help information, version information, etc..
- OptionException
argscontains unknown options.- IOException
An IO operation failed.
- UnauthorizedAccessException
More privileges are required.
- UriFormatException
The URI or local path specified is invalid.