NAnt SDK Documentation - v0.92 |

# VersionConversionFunctions.Parse Method

Converts the specified string representation of a version to its Version equivalent.

[Visual Basic]
<Function(Name:="parse")>
Public Shared Function Parse( _
ByVal version As String _
) As Version
[C#]
[Function(Name="parse")]
public static Version Parse(
string version
);

#### Parameters

version
  A string containing the major, minor, build, and revision numbers, where each number is delimited with a period character ('.').

#### Return Value

A Version instance representing the specified String.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | version has fewer than two components or more than four components.
ArgumentOutOfRangeException | A major, minor, build, or revision component is less than zero.
FormatException | At least one component of version does not parse to a decimal integer.

#### See Also

VersionConversionFunctions Class | NAnt.Core.Functions Namespace