WGet.NET 4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
WGetNET.WinGetSource Class Reference

Represents a winget source. More...

Inheritance diagram for WGetNET.WinGetSource:
WGetNET.IWinGetObject

Public Member Functions

object Clone ()
 
override string ToString ()
 

Static Public Member Functions

static WinGetSource Create (string name, string identifier, string arg, string type)
 Creates a new instance of the WGetNET.WinGetSource class and returns it.
 
static WinGetSource Create (string name, string identifier, string arg, string type, string data)
 Creates a new instance of the WGetNET.WinGetSource class and returns it.
 

Properties

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.
 
- Properties inherited from WGetNET.IWinGetObject

Detailed Description

Represents a winget source.

Definition at line 15 of file WinGetSource.cs.

Member Function Documentation

◆ Clone()

object WGetNET.WinGetSource.Clone ( )

Definition at line 247 of file WinGetSource.cs.

◆ 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
nameThe name of the source.
identifierThe identifier of the source.
argThe URL or UNC of the source.
typeThe type identifier for the source.
Returns
The created instance of the WGetNET.WinGetSource class.
Exceptions
System.ArgumentExceptionA provided argument is empty.
System.ArgumentNullExceptionA 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
nameThe name of the source.
identifierThe identifier of the source.
argThe URL or UNC of the source.
typeThe type identifier for the source.
dataThe data field of the source.
Returns
The created instance of the WGetNET.WinGetSource class.
Exceptions
System.ArgumentExceptionA provided argument is empty.
System.ArgumentNullExceptionA provided argument is null.

Definition at line 219 of file WinGetSource.cs.

◆ ToString()

override string WGetNET.WinGetSource.ToString ( )

Definition at line 262 of file WinGetSource.cs.

Property Documentation

◆ Arg

string WGetNET.WinGetSource.Arg
get

Gets the URL/UNC of the source.

Definition at line 31 of file WinGetSource.cs.

◆ Data

string WGetNET.WinGetSource.Data
get

Gets the data of the source.

Definition at line 67 of file WinGetSource.cs.

◆ 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

Gets the identifier of the source.

Definition at line 78 of file WinGetSource.cs.

◆ IsEmpty

bool WGetNET.WinGetSource.IsEmpty
get

Gets if the object is empty.

Implements WGetNET.IWinGetObject.

Definition at line 110 of file WinGetSource.cs.

◆ Name

string WGetNET.WinGetSource.Name
get

Gets the name of the source.

Definition at line 20 of file WinGetSource.cs.

◆ TrustLevel

List<string> WGetNET.WinGetSource.TrustLevel
get

Gets the trust level of the source.

Definition at line 100 of file WinGetSource.cs.

◆ Type

string WGetNET.WinGetSource.Type
get

Gets the type of the source.

Definition at line 56 of file WinGetSource.cs.

◆ Uri

Uri? WGetNET.WinGetSource.Uri
get

Gets the uri of the source.

null if WGetNET.WinGetSource.Arg can't be parsed to a System.Uri instance.

Definition at line 45 of file WinGetSource.cs.