Represents a winget source.
More...
|
string | Name [get] |
| Gets the name of the source.
|
|
string | Arg [get] |
| Gets the URL/UNC of the source.
|
|
Uri? | Uri [get] |
| Gets the uri of the source.
|
|
string | Type [get] |
| Gets the type of the source.
|
|
string | Data [get] |
| Gets the data of the source.
|
|
string | Identifier [get] |
| Gets the identifier of the source.
|
|
bool | Explicit [get] |
| Gets whether the source was explicitly added.
|
|
List< string > | TrustLevel [get] |
| Gets the trust level of the source.
|
|
bool | IsEmpty [get] |
| Gets if the object is empty.
|
|
Represents a winget source.
Definition at line 15 of file WinGetSource.cs.
◆ Clone()
object WGetNET.WinGetSource.Clone |
( |
| ) |
|
◆ Create() [1/2]
static WinGetSource WGetNET.WinGetSource.Create |
( |
string | name, |
|
|
string | identifier, |
|
|
string | arg, |
|
|
string | type ) |
|
static |
Creates a new instance of the WGetNET.WinGetSource class and returns it.
- Parameters
-
name | The name of the source. |
identifier | The identifier of the source. |
arg | The URL or UNC of the source. |
type | The type identifier for the source. |
- Returns
- The created instance of the WGetNET.WinGetSource class.
- Exceptions
-
System.ArgumentException | A provided argument is empty. |
System.ArgumentNullException | A provided argument is null. |
Definition at line 190 of file WinGetSource.cs.
◆ Create() [2/2]
static WinGetSource WGetNET.WinGetSource.Create |
( |
string | name, |
|
|
string | identifier, |
|
|
string | arg, |
|
|
string | type, |
|
|
string | data ) |
|
static |
Creates a new instance of the WGetNET.WinGetSource class and returns it.
- Parameters
-
name | The name of the source. |
identifier | The identifier of the source. |
arg | The URL or UNC of the source. |
type | The type identifier for the source. |
data | The data field of the source. |
- Returns
- The created instance of the WGetNET.WinGetSource class.
- Exceptions
-
System.ArgumentException | A provided argument is empty. |
System.ArgumentNullException | A provided argument is null. |
Definition at line 219 of file WinGetSource.cs.
◆ ToString()
override string WGetNET.WinGetSource.ToString |
( |
| ) |
|
◆ Arg
string WGetNET.WinGetSource.Arg |
|
get |
◆ Data
string WGetNET.WinGetSource.Data |
|
get |
◆ Explicit
bool WGetNET.WinGetSource.Explicit |
|
get |
Gets whether the source was explicitly added.
Definition at line 89 of file WinGetSource.cs.
◆ Identifier
string WGetNET.WinGetSource.Identifier |
|
get |
◆ IsEmpty
bool WGetNET.WinGetSource.IsEmpty |
|
get |
◆ Name
string WGetNET.WinGetSource.Name |
|
get |
◆ TrustLevel
List<string> WGetNET.WinGetSource.TrustLevel |
|
get |
◆ Type
string WGetNET.WinGetSource.Type |
|
get |
◆ Uri
Uri? WGetNET.WinGetSource.Uri |
|
get |