C# Класс Mono.Addins.Setup.SetupTool

A command line add-in manager.
This class can be used to provide an add-in management command line tool to applications.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddCommand ( string category, string command, string shortName, string arguments, string description, string longDescription, SetupCommandHandler handler ) : void

Adds a custom command to the add-in manager

PrintHelp ( ) : void

Prints help about the add-in management tool, or about a specific command

Run ( string args ) : int

Runs the command line tool.

Run ( string args, int firstArgumentIndex ) : int

Runs the command line tool.

SetupTool ( AddinRegistry registry ) : System

Creates a new instance

Приватные методы

Метод Описание
AddRepository ( string args ) : void
BuildPackage ( string args ) : void
BuildRepository ( string args ) : void
CheckInstall ( string args ) : void
CreateCommands ( ) : void
DumpRegistryFile ( string args ) : void
FindCommand ( string id ) : SetupCommand
GetArguments ( ) : string[]
GetFullId ( string id ) : string
GetId ( AddinHeader ainfo ) : string
GetNodes ( AddinDescription desc, Mono.Addins.Description.ExtensionNodeSet nset, ArrayList list, Hashtable visited ) : void
GetOption ( string key, string defValue ) : string
HasOption ( string key ) : bool
Install ( PackageCollection packs, bool prompt ) : void
Install ( string args ) : void
IsHidden ( Addin ainfo ) : bool
IsHidden ( AddinHeader ainfo ) : bool
ListAvailable ( string args ) : void
ListInstalled ( string args ) : void
ListRepositories ( string args ) : void
ListUpdates ( string args ) : void
PrintAddin ( AddinDescription desc ) : void
PrintAddinInfo ( string args ) : void
PrintAddinXml ( XmlWriter tw, AddinDescription desc ) : void
PrintApplications ( string args ) : void
PrintExtensionNodeSetXml ( XmlWriter tw, AddinDescription desc, Mono.Addins.Description.ExtensionNodeSet nset, ArrayList list, Hashtable visited ) : void
PrintExtensionPoint ( AddinDescription desc, ExtensionPoint ep ) : void
PrintLibraries ( string args ) : void
ReadOptions ( string args ) : void
RegisterNodeXml ( Mono.Addins.Description.ExtensionNodeType nt, ArrayList list, Hashtable visited ) : string
RemoveRepository ( string args ) : void
RepairRegistry ( string args ) : void
RunCommand ( string cmd, string parms ) : int
Uninstall ( string args ) : void
Update ( string args ) : void
UpdateAvailableAddins ( string args ) : void
UpdateRegistry ( string args ) : void

Описание методов

AddCommand() публичный Метод

Adds a custom command to the add-in manager
public AddCommand ( string category, string command, string shortName, string arguments, string description, string longDescription, SetupCommandHandler handler ) : void
category string /// Category under which the command has to be shown in the help text ///
command string /// Name of the command ///
shortName string /// Short name of the command (it's an alias of the normal name) ///
arguments string /// Formal description of the arguments that the command accepts. For example: "[addin-id|addin-file] [--xml] [--all] [--full] [--namespace ]" ///
description string /// Short description of the command ///
longDescription string /// Long description of the command ///
handler SetupCommandHandler /// Delegate to be invoked to run the command ///
Результат void

PrintHelp() публичный Метод

Prints help about the add-in management tool, or about a specific command
public PrintHelp ( ) : void
Результат void

Run() публичный Метод

Runs the command line tool.
public Run ( string args ) : int
args string /// Command line arguments ///
Результат int

Run() публичный Метод

Runs the command line tool.
public Run ( string args, int firstArgumentIndex ) : int
args string /// Array that contains the command line arguments ///
firstArgumentIndex int /// Index of the arguments array that has the first argument for the management tool ///
Результат int

SetupTool() публичный Метод

Creates a new instance
public SetupTool ( AddinRegistry registry ) : System
registry Mono.Addins.AddinRegistry /// Add-in registry to manage. ///
Результат System