![]() |
WGet.NET 4.4.1
A WinGet wrapper library for .Net.
|
Represents a winget arguments string for different winget actions. More...
Public Member Functions | |
WinGetArguments | Custom (string custom) |
Adds a custom flag/parameter to the arguments. | |
WinGetArguments | Query (string query) |
Adds a query to the arguments. | |
WinGetArguments | Source (string source) |
Adds a source query to the arguments. | |
WinGetArguments | File (string file) |
Adds a file path to the arguments. | |
WinGetArguments | Directory (string directory) |
Adds a directory path to the arguments. | |
WinGetArguments | Enable (string query) |
Adds a enable action to the arguments. | |
WinGetArguments | Disable (string query) |
Adds a disable action to the arguments. | |
WinGetArguments | Name (string name) |
Adds name data to the arguments. | |
WinGetArguments | Arg (string arg) |
Adds arg (Source argument) data to the arguments. | |
WinGetArguments | Type (string type) |
Adds type data to the arguments. | |
WinGetArguments | Version (string version) |
Adds a version query to the arguments. | |
WinGetArguments | Version (Version version) |
Adds a version query to the arguments. | |
WinGetArguments | Version () |
Adds a version query to the arguments. | |
WinGetArguments | Exact () |
Adds the '–exact' flag to the arguments. | |
WinGetArguments | Silent () |
Adds the '–silent' flag to the arguments. | |
WinGetArguments | All () |
Adds the '–all' flag to the arguments. | |
WinGetArguments | IncludeUnknown () |
Adds the '–include-unknown' flag to the arguments. | |
WinGetArguments | AcceptSourceAgreements () |
Adds the '–accept-source-agreements' flag to the arguments. | |
WinGetArguments | AcceptPackageAgreements () |
Adds the '–accept-package-agreements' flag to the arguments. | |
WinGetArguments | IgnoreUnavailable () |
Adds the '–ignore-unavailable' flag to the arguments. | |
WinGetArguments | Installed () |
Adds the '–installed' flag to the arguments. | |
WinGetArguments | Blocking () |
Adds the '–blocking' flag to the arguments. | |
WinGetArguments | Force () |
Adds the '–force' flag to the arguments. | |
WinGetArguments | Info () |
Adds the '–info' flag to the arguments. | |
override string | ToString () |
Static Public Member Functions | |
static WinGetArguments | WinGet () |
Creates a new winget arguments object with no base cmd. Used for direct callin of the winget cmd with flags. | |
static WinGetArguments | Settings () |
Creates a new winget arguments object with "settings" as the base cmd. | |
static WinGetArguments | SettingsExport () |
Creates a new winget arguments object with "settings export" as the base cmd. | |
static WinGetArguments | List () |
Creates a new winget arguments object with "list" as the base cmd. | |
static WinGetArguments | Search () |
Creates a new winget arguments object with "search" as the base cmd. | |
static WinGetArguments | Install () |
Creates a new winget arguments object with "install" as the base cmd. | |
static WinGetArguments | Upgrade () |
Creates a new winget arguments object with "upgrade" as the base cmd. | |
static WinGetArguments | Uninstall () |
Creates a new winget arguments object with "uninstall" as the base cmd. | |
static WinGetArguments | Download () |
Creates a new winget arguments object with "download" as the base cmd. | |
static WinGetArguments | Repair () |
Creates a new winget arguments object with "repair" as the base cmd. | |
static WinGetArguments | Export () |
Creates a new winget arguments object with "export" as the base cmd. | |
static WinGetArguments | Import () |
Creates a new winget arguments object with "import" as the base cmd. | |
static WinGetArguments | Hash () |
Creates a new winget arguments object with "hash" as the base cmd. | |
static WinGetArguments | PinList () |
Creates a new winget arguments object with "pin list" as the base cmd. | |
static WinGetArguments | PinAdd () |
Creates a new winget arguments object with "pin add" as the base cmd. | |
static WinGetArguments | PinRemove () |
Creates a new winget arguments object with "pin remove" as the base cmd. | |
static WinGetArguments | PinReset () |
Creates a new winget arguments object with "pin reset" as the base cmd. | |
static WinGetArguments | SourceAdd () |
Creates a new winget arguments object with "source add" as the base cmd. | |
static WinGetArguments | SourceRemove () |
Creates a new winget arguments object with "source remove" as the base cmd. | |
static WinGetArguments | SourceUpdate () |
Creates a new winget arguments object with "source update" as the base cmd. | |
static WinGetArguments | SourceReset () |
Creates a new winget arguments object with "source reset" as the base cmd. | |
static WinGetArguments | SourceExport () |
Creates a new winget arguments object with "source export" as the base cmd. | |
static WinGetArguments | CustomCmd (string cmd) |
Creates a new winget arguments object with a custom base cmd. | |
Properties | |
string | Arguments [get] |
Gets the generated arguments. | |
bool | IsEmpty [get] |
Gets if the object is empty. | |
![]() |
Represents a winget arguments string for different winget actions.
Used to easily generate arguments for winget execution.
Definition at line 16 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.AcceptPackageAgreements | ( | ) |
Adds the '–accept-package-agreements' flag to the arguments.
Definition at line 751 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.AcceptSourceAgreements | ( | ) |
Adds the '–accept-source-agreements' flag to the arguments.
Definition at line 739 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.All | ( | ) |
Adds the '–all' flag to the arguments.
Definition at line 715 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Arg | ( | string | arg | ) |
Adds arg (Source argument) data to the arguments.
Mainly used for Source based actions.
arg | A System.String containing the arg (Source argument) to add to the arguments. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 596 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Blocking | ( | ) |
Adds the '–blocking' flag to the arguments.
Definition at line 787 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Custom | ( | string | custom | ) |
Adds a custom flag/parameter to the arguments.
custom | The System.String that should be added to the arguments. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 364 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with a custom base cmd.
cmd | A System.String containing the custom cmd. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 331 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Directory | ( | string | directory | ) |
Adds a directory path to the arguments.
Behavior depends on base cmd. If the base cmd does not need a directory, the function will do nothing.
directory | The System.String that contains the directory. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 477 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Disable | ( | string | query | ) |
Adds a disable action to the arguments.
query | A System.String containing the option to disable. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 544 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "download" as the base cmd.
Definition at line 168 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Enable | ( | string | query | ) |
Adds a enable action to the arguments.
query | A System.String containing the option to enable. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 521 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Exact | ( | ) |
Adds the '–exact' flag to the arguments.
Definition at line 691 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "export" as the base cmd.
Definition at line 190 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.File | ( | string | file | ) |
Adds a file path to the arguments.
Behavior depends on base cmd. If the base cmd does not read or write from or to a file, the function will do nothing.
file | The System.String that contains the file path. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 439 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Force | ( | ) |
Adds the '–force' flag to the arguments.
Definition at line 799 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "hash" as the base cmd.
Definition at line 212 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.IgnoreUnavailable | ( | ) |
Adds the '–ignore-unavailable' flag to the arguments.
Definition at line 763 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "import" as the base cmd.
Definition at line 201 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.IncludeUnknown | ( | ) |
Adds the '–include-unknown' flag to the arguments.
Definition at line 727 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Info | ( | ) |
Adds the '–info' flag to the arguments.
Definition at line 811 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "install" as the base cmd.
Definition at line 135 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Installed | ( | ) |
Adds the '–installed' flag to the arguments.
Definition at line 775 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "list" as the base cmd.
Definition at line 113 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Name | ( | string | name | ) |
Adds name data to the arguments.
Mainly used for Source based actions.
name | A System.String containing the name to add to the arguments. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 570 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "pin add" as the base cmd.
Definition at line 234 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "pin list" as the base cmd.
Definition at line 223 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "pin remove" as the base cmd.
Definition at line 245 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "pin reset" as the base cmd.
Definition at line 256 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Query | ( | string | query | ) |
Adds a query to the arguments.
Mainly used for Package based actions.
query | The System.String that should be added as a query. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 390 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "repair" as the base cmd.
Definition at line 179 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "search" as the base cmd.
Definition at line 124 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "settings" as the base cmd.
Definition at line 91 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "settings export" as the base cmd.
Definition at line 102 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Silent | ( | ) |
Adds the '–silent' flag to the arguments.
Definition at line 703 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Source | ( | string | source | ) |
Adds a source query to the arguments.
source | The System.String that contains the source name. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 413 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "source add" as the base cmd.
Definition at line 267 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "source export" as the base cmd.
Definition at line 311 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "source remove" as the base cmd.
Definition at line 278 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "source reset" as the base cmd.
Definition at line 300 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "source update" as the base cmd.
Definition at line 289 of file WinGetArguments.cs.
override string WGetNET.WinGetArguments.ToString | ( | ) |
Definition at line 819 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Type | ( | string | type | ) |
Adds type data to the arguments.
Mainly used for Source based actions.
type | A System.String containing the type data to add to the arguments. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 622 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "uninstall" as the base cmd.
Definition at line 157 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with "upgrade" as the base cmd.
Definition at line 146 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Version | ( | ) |
Adds a version query to the arguments.
Definition at line 679 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Version | ( | string | version | ) |
Adds a version query to the arguments.
version | The System.String that contains the version. |
System.ArgumentNullException | A provided argument is null. |
System.ArgumentException | A provided argument is empty. |
Definition at line 645 of file WinGetArguments.cs.
WinGetArguments WGetNET.WinGetArguments.Version | ( | Version | version | ) |
Adds a version query to the arguments.
version | A System.Version object containing the version to query. |
System.ArgumentNullException | A provided argument is null. |
Definition at line 665 of file WinGetArguments.cs.
|
static |
Creates a new winget arguments object with no base cmd. Used for direct callin of the winget cmd with flags.
Definition at line 80 of file WinGetArguments.cs.
|
get |
Gets the generated arguments.
Definition at line 34 of file WinGetArguments.cs.
|
get |
Gets if the object is empty.
Implements WGetNET.IWinGetObject.
Definition at line 43 of file WinGetArguments.cs.