VersionStatic: Parse |
Converts the string representation of a version number to an equivalent VersionStatic object.
Public Function Parse( ByRef s As String ) As Version
Exception | Condition |
---|---|
ArgumentException | s has fewer than two or more than four version components. |
ArgumentOutOfRangeException | At least one component in s is less than zero. |
FormatException | At least one component in s is not an integer. |
OverflowException | At least one component in s represents a number that is greater than the max 32-bit value. |
The s parameter must have the following format:
Major.Minor[.Build[.Revision]]where Major, Minor, Build, and Revision are the string representations of the version numbers four components: major version number, minor version number, build number, and revision number. Optional components are shown in square brackets ([ and ]). The components must appear in the specified order, and must be separated by periods.