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: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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

.NET Standard

Supported in: 2.0

See Also