NAnt SDK Documentation - v0.92 |
|
VersionFunctions.GetMajor Method
Gets the value of the major component of a given version.
[Visual Basic]
<Function(Name:="get-major")>
Public Shared Function GetMajor( _
ByVal
version As
Version _
) As
Integer
[C#]
[Function(Name="get-major")]
public static
int GetMajor(
Version version);
Parameters
-
version
- A version.
Return Value
The major version number.
See Also
VersionFunctions Class | NAnt.Core.Functions Namespace | GetVersion | GetVersion | GetVersion