Class VersionQualifier
Represents a version qualifier for a firmware version. A version qualifier typically includes the firmware version, a type (such as Alpha, Beta, or Final), and an iteration number.
public class VersionQualifier
- Inheritance
-
objectVersionQualifier
Constructors
VersionQualifier()
Initializes a new instance of the VersionQualifier class with default values. The default firmware version is set to a new instance of FirmwareVersion, the type is set to Final, and the iteration is set to 0.
public VersionQualifier()
VersionQualifier(FirmwareVersion, VersionQualifierType, long)
Initializes a new instance of the VersionQualifier class. This constructor allows you to specify the firmware version, type, and iteration. The iteration must be a non-negative value and less than or equal to int.MaxValue. If the firmware version is null, an System.ArgumentNullException will be thrown. If the iteration is negative or greater than int.MaxValue, an System.ArgumentOutOfRangeException will be thrown.
public VersionQualifier(FirmwareVersion firmwareVersion, VersionQualifierType type, long iteration)
Parameters
firmwareVersion
FirmwareVersionThe firmware version associated with this qualifier.
type
VersionQualifierTypeThe type of version qualifier (Alpha, Beta, Final).
iteration
longThe iteration number of the version qualifier, must be a non-negative value and less than or equal to int.MaxValue.
Exceptions
- ArgumentOutOfRangeException
- ArgumentNullException
Properties
FirmwareVersion
Represents the firmware version associated with this qualifier.
public FirmwareVersion FirmwareVersion { get; }
Property Value
Iteration
Represents the iteration number of the version qualifier.
public long Iteration { get; }
Property Value
- long
Type
Represents the type of version qualifier, such as Alpha, Beta, or Final.
public VersionQualifierType Type { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
Returns a string that represents the current VersionQualifier.
public override string ToString()
Returns
- string