NAnt SDK Documentation - v0.92 |

# OperatingSystemFunctions.GetVersion Method

Gets a Version object that identifies this operating system.

[Visual Basic]
<Function(Name:="get-version")>
Public Shared Function GetVersion( _
ByVal operatingSystem As OperatingSystem _
) As Version
[C#]
[Function(Name="get-version")]
public static Version GetVersion(
OperatingSystem operatingSystem
);

#### Parameters

operatingSystem
  The operating system.

#### Return Value

A Version object that describes the major version, minor version, build, and revision of the operating system.

#### See Also

OperatingSystemFunctions Class | NAnt.Core.Functions Namespace | GetOperatingSystem