Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

GetOperatingSystem

static func GetOperatingSystem() -> Result<OperatingSystem, EnvironmentError>

Declaring type: Environment
Module: System
Assembly: System.Runtime.dll
Source file: Functions.rvn

Returns the execution host's OS classification or an unavailable error.

Return value

Result<OperatingSystem, EnvironmentError>

Remarks

Versions describe the OS product, except Linux which preserves the kernel release. Distribution data is optional.