VersionStatic: Parse

Parse

Converts the string representation of a version number to an equivalent VersionStatic object.



 Public Function Parse(
	  ByRef s As String ) As Version

Parameters

s
[ByRef] String. A string that contains a version number to convert.

Return Values

Version -  An object that is equivalent to the version number specified in the s parameter.

Exceptions

Exception Condition
ArgumentExceptions has fewer than two or more than four version components.
ArgumentOutOfRangeExceptionAt least one component in s is less than zero.
FormatExceptionAt least one component in s is not an integer.
OverflowExceptionAt least one component in s represents a number that is greater than the max 32-bit value.

Remarks

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.

See Also

Project CorLib Overview

Class VersionStatic Overview