Share via


VersionNumber Class

Definition

An object representing a version with the format <major>.<minor>.<build>.<revision>-<label> .

public class VersionNumber : IComparable<Xamarin.UITest.Utils.VersionNumber>, IEquatable<Xamarin.UITest.Utils.VersionNumber>, Xamarin.UITest.Utils.IVersionNumber
type VersionNumber = class
    interface IVersionNumber
    interface IComparable<VersionNumber>
    interface IEquatable<VersionNumber>
Public Class VersionNumber
Implements IComparable(Of VersionNumber), IEquatable(Of VersionNumber), IVersionNumber
Inheritance
VersionNumber
Implements

Constructors

VersionNumber(String)

Initializes a new instance of the VersionNumber class.

Properties

BuildOrPatch

The version's build number

Label

The version's label component

Major

The version's major number

Minor

The version's minor number

RawVersion

The version string used to initialize this VersionNumber.

Revision

The version's revision number

Methods

CompareTo(VersionNumber)

Compares the current VersionNumber with the provided VersionNumber.

CompareTo(VersionNumber, VersionNumber)

Compares two VersionNumbers.

Equals(Object)

Determines whether the specified Object is equal to the current VersionNumber.

Equals(VersionNumber)

Determines whether the specified VersionNumber is equal to the current VersionNumber.

GetHashCode()

Serves as a hash function for a VersionNumber object.

ToString()

Returns a String that represents the current VersionNumber.

Operators

Equality(VersionNumber, VersionNumber)

Determines whether a specified instance of VersionNumber is equal to another specified VersionNumber.

GreaterThan(VersionNumber, VersionNumber)

Determines whether one specified VersionNumber is greater than another specfied VersionNumber.

GreaterThanOrEqual(VersionNumber, VersionNumber)

Determines whether one specified VersionNumber is greater than or equal to another specfied VersionNumber.

Inequality(VersionNumber, VersionNumber)

Determines whether a specified instance of VersionNumber is not equal to another specified VersionNumber.

LessThan(VersionNumber, VersionNumber)

Determines whether one specified VersionNumber is lower than another specfied VersionNumber.

LessThanOrEqual(VersionNumber, VersionNumber)

Determines whether one specified VersionNumber is lower than or equal to another specfied VersionNumber.

Applies to