VerUtilVersion Class
An enhanced implementation of SemVer 2.0.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| Dispose() |
Properties
Section titled “Properties”| Property | Description |
|---|---|
| HasMajor | Whether the Major part was specified. |
| HasMinor | Whether the Minor part was specified. |
| HasPatch | Whether the Patch part was specified. |
| HasRevision | Whether the Revision part was specified. |
| IsInvalid | Whether the version conformed to the spec. |
| Major | For version A.B.C.D, Major is A. It is 0 if not specified. |
| Metadata | For version X.Y.Z-releaselabels+metadata, Metadata is the rest of the string after +. For invalid versions, it is all of the string after the point where it was an invalid string. |
| Minor | For version A.B.C.D, Minor is B. It is 0 if not specified. |
| Patch | For version A.B.C.D, Patch is C. It is 0 if not specified. |
| Prefix | Prefix character that was stripped from Version , or the null character if there was no prefix. |
| ReleaseLabels | For version X.Y.Z-releaselabels+metadata, ReleaseLabels is the parsed information for releaselabels. |
| Revision | For version A.B.C.D, Revision is D. It is 0 if not specified. |
| Version | String version, which would have stripped the leading ‘v’. |
WixToolset.Mba.Core.dll version 4.0.5+b9b2f1b4c69a1b509d487dc950b30b4ec9b0d040 |
Dispose() Method
Section titled “Dispose() Method”Declaration
Section titled “Declaration”public void Dispose()HasMajor Property
Section titled “HasMajor Property”Whether the Major part was specified.
Declaration
Section titled “Declaration”public bool HasMajor { get; set; }HasMinor Property
Section titled “HasMinor Property”Whether the Minor part was specified.
Declaration
Section titled “Declaration”public bool HasMinor { get; set; }HasPatch Property
Section titled “HasPatch Property”Whether the Patch part was specified.
Declaration
Section titled “Declaration”public bool HasPatch { get; set; }HasRevision Property
Section titled “HasRevision Property”Whether the Revision part was specified.
Declaration
Section titled “Declaration”public bool HasRevision { get; set; }IsInvalid Property
Section titled “IsInvalid Property”Whether the version conformed to the spec.
Declaration
Section titled “Declaration”public bool IsInvalid { get; set; }Major Property
Section titled “Major Property”For version A.B.C.D, Major is A. It is 0 if not specified.
Declaration
Section titled “Declaration”public System.UInt32 Major { get; set; }Metadata Property
Section titled “Metadata Property”For version X.Y.Z-releaselabels+metadata, Metadata is the rest of the string after +. For invalid versions, it is all of the string after the point where it was an invalid string.
Declaration
Section titled “Declaration”public string Metadata { get; set; }Minor Property
Section titled “Minor Property”For version A.B.C.D, Minor is B. It is 0 if not specified.
Declaration
Section titled “Declaration”public System.UInt32 Minor { get; set; }Patch Property
Section titled “Patch Property”For version A.B.C.D, Patch is C. It is 0 if not specified.
Declaration
Section titled “Declaration”public System.UInt32 Patch { get; set; }Prefix Property
Section titled “Prefix Property”Prefix character that was stripped from Version , or the null character if there was no prefix.
Declaration
Section titled “Declaration”public System.Char Prefix { get; set; }ReleaseLabels Property
Section titled “ReleaseLabels Property”For version X.Y.Z-releaselabels+metadata, ReleaseLabels is the parsed information for releaselabels.
Declaration
Section titled “Declaration”public VerUtilVersionReleaseLabel[] ReleaseLabels { get; set; }Revision Property
Section titled “Revision Property”For version A.B.C.D, Revision is D. It is 0 if not specified.
Declaration
Section titled “Declaration”public System.UInt32 Revision { get; set; }Version Property
Section titled “Version Property”String version, which would have stripped the leading ‘v’.
Declaration
Section titled “Declaration”public string Version { get; set; }