Table of Contents

Class AddApp

Namespace
ZeroInstall.Commands.Desktop
Assembly
0install.dll

Add an application to the AppList.

public class AddApp : AppCommand
Inheritance
AddApp
Inherited Members

Constructors

AddApp(ICommandHandler)

Common base class for commands that manage an AppList.

public AddApp(ICommandHandler handler)

Parameters

handler ICommandHandler

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

int

AltName

public const string AltName = "add-app"

Field Value

string

Name

public const string Name = "add"

Field Value

string

Properties

AdditionalArgsMax

The maximum number of AdditionalArgs allowed. Checked in Parse(IReadOnlyList<string>).

protected override int AdditionalArgsMax { get; }

Property Value

int

Description

A short description of what this command does.

public override string Description { get; }

Property Value

string

Usage

The additional arguments to be displayed after the command name in the help text.

public override string Usage { get; }

Property Value

string

Methods

ExecuteHelper()

Template method that performs the actual operation.

protected override ExitCode ExecuteHelper()

Returns

ExitCode

The exit status code to end the process with.