OSHelperGetWindowsVersion Method

Gets the Windows version, or if the current OS is not Windows.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static Version? GetWindowsVersion()

Return Value

Version
The Windows version, or if the current OS is not Windows.

Remarks

This method works correctly on every platform target, regardless of the presence of an application manifest.

See Also