# VersionNumber struct

Namespace: [GH_IO](https://developer.rhino3d.com/api/gh1/namespace/gh-io.md) · Assembly: [GH_IO](https://developer.rhino3d.com/api/gh1/assembly/gh-io.md)

```cs
[Serializable]
public struct VersionNumber : IComparable, IComparable<VersionNumber>
```

Represents a product version number that encodes major, minor, time and build branch information. as major.minor.yyddd.hhmmb where: yy = year of build - 2000 ddd = year day of build (1-366) hh = hour of build mm = minute of build b = branch of build

## Constructors

- [VersionNumber](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/ctor.md): (3 overloads) Initializes a new instance of the VersionNumber structure to the version specified by the parameters.

## Properties

- [BuildBranch](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/buildbranch.md): Gets the build branch component of this instance.
- [IsValid](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/isvalid.md): True when all information in the VersionNumber has valid values.
- [Major](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/major.md): Gets the major version number component of this instance.
- [MaxMajorVersionNumber](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/maxmajorversionnumber.md): (static) The largest possible valid value of VersionNumber.MajorVersionNumber.
- [MaxMinorVersionNumber](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/maxminorversionnumber.md): (static) The largest possible valid value of VersionNumber.MinorVersionNumber.
- [MaxValid](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/maxvalid.md): (static) The largest possible valid VersionNumber.
- [MaxValidBuildBranch](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/maxvalidbuildbranch.md): (static) Represents the largest possible valid value of VersionNumber.BuildBranch. This field is read-only.
- [MaxValidTime](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/maxvalidtime.md): (static) The largest possible valid value of VersionNumber.Time. This field is read-only.
- [MinMajorVersionNumber](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minmajorversionnumber.md): (static) The smallest possible valid value of VersionNumber.MajorVersionNumber.
- [MinMinorVersionNumber](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minminorversionnumber.md): (static) The smallest possible valid value of VersionNumber.MinorVersionNumber.
- [Minor](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minor.md): Gets the minor version number component of this instance.
- [MinValid](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minvalid.md): (static) The smallest possible valid VersionNumber.
- [MinValidBuildBranch](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minvalidbuildbranch.md): (static) Represents the smallest possible valid value of VersionNumber.BuildBranch. This field is read-only.
- [MinValidTime](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/minvalidtime.md): (static) The smallest possible valid value of VersionNumber.Time. This field is read-only.
- [Time](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/time.md): Gets the version time component of this instance.
- [Unset](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/unset.md): (static) The Unset VersionNumber. VersionNumber.Unset.IsValid is false.
- [UnsetBuildBranch](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/unsetbuildbranch.md): (static) The value of an Unset VersionNumber.BuildBranch.
- [UnsetTime](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/unsettime.md): (static) The value of an Unset VersionNumber.Time.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/compareto.md): (2 overloads) Compares the value of this instance to a specified VersionNumber value and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified VersionNumber value.
- [ToString](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/tostring.md): Converts the value of the current VersionNumber object to its equivalent string representation major.minor.yyddd.hhmmb. (Overrides ValueType.ToString().)
- [ToVersion](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/toversion.md): Convert this VersionNumber class to System.Version()
- [TryParse](https://developer.rhino3d.com/api/gh1/type/gh-io.versionnumber/tryparse.md): (2 overloads, static) Converts the specified string representation of a version number to its VersionNumber equivalent and returns a value that indicates whether the conversion succeeded.
