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

Represents a winget pinned package. More...

Inheritance diagram for WGetNET.WinGetPinnedPackage:
WGetNET.WinGetPackage WGetNET.IWinGetObject

Public Member Functions

override object Clone ()
 
- Public Member Functions inherited from WGetNET.WinGetPackage
bool SamePackage (WinGetPackage other, bool sameVersion=false)
 Checks if two packages are the same and optionally if they also have the same version.
 
override string ToString ()
 

Properties

string PinTypeString [get]
 Gets the pin type of the package as a System.String.
 
string PinnedVersion [get]
 Gets the pinned version or version range.
 
PinType PinType [get]
 Gets the pin type of the package.
 
- Properties inherited from WGetNET.WinGetPackage
string Name [get]
 Gets the name of the package.
 
string Id [get]
 Gets the id of the package.
 
string VersionString [get]
 Gets the version of the package.
 
Version Version [get]
 Gets the version of the package.
 
string AvailableVersionString [get]
 Gets the newest available version of the package.
 
Version AvailableVersion [get]
 Gets the newest available version of the package.
 
string SourceName [get]
 Gets the source name for the package.
 
bool HasShortenedId [get]
 Gets if id of the package is shortened.
 
bool HasNoId [get]
 Gets if the package does not provide an id.
 
bool HasUpgrade [get]
 Gets if the package can be upgraded.
 
bool IsEmpty [get]
 Gets if the object is empty.
 
- Properties inherited from WGetNET.IWinGetObject

Additional Inherited Members

- Static Public Member Functions inherited from WGetNET.WinGetPackage
static WinGetPackage Create (string name, string id, string version, string sourceName="")
 Creates a new instance of the WGetNET.WinGetPackage class and returns it.
 
static WinGetPackage Create (string name, string id, string version, string availableVersion, string sourceName="")
 Creates a new instance of the WGetNET.WinGetPackage class and returns it.
 
static WinGetPackage Create (string name, string id, Version version, string sourceName="")
 Creates a new instance of the WGetNET.WinGetPackage class and returns it.
 
static WinGetPackage Create (string name, string id, Version version, Version availableVersion, string sourceName="")
 Creates a new instance of the WGetNET.WinGetPackage class and returns it.
 
- Package Functions inherited from WGetNET.WinGetPackage

Detailed Description

Represents a winget pinned package.

Definition at line 12 of file WinGetPinnedPackage.cs.

Member Function Documentation

◆ Clone()

override object WGetNET.WinGetPinnedPackage.Clone ( )
virtual

Reimplemented from WGetNET.WinGetPackage.

Definition at line 85 of file WinGetPinnedPackage.cs.

Property Documentation

◆ PinnedVersion

string WGetNET.WinGetPinnedPackage.PinnedVersion
get

Gets the pinned version or version range.

Definition at line 28 of file WinGetPinnedPackage.cs.

◆ PinType

PinType WGetNET.WinGetPinnedPackage.PinType
get

Gets the pin type of the package.

Definition at line 39 of file WinGetPinnedPackage.cs.

◆ PinTypeString

string WGetNET.WinGetPinnedPackage.PinTypeString
get

Gets the pin type of the package as a System.String.

Definition at line 17 of file WinGetPinnedPackage.cs.