PlatformUtilitiesOSBuildName Method

Returns the Microsoft OS build name based on the build number stored in the Windows registry

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static string OSBuildName()

Return Value

String
The descriptive name of the operating system e.g. Windows 11 (24H2).

Remarks

This function only works on Microsoft operating systems. If you need this function on a non-Windows OS, use OSBuildName(Int32) instead and supply the build number as a parameter.

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also