NAnt SDK Documentation - v0.92 |

# OperatingSystemFunctions.GetPlatform Method

Gets a PlatformID value that identifies the operating system platform.

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

#### Parameters

operatingSystem
  The operating system.

#### Return Value

PlatformID value that identifies the operating system platform.

#### See Also

OperatingSystemFunctions Class | NAnt.Core.Functions Namespace | GetOperatingSystem