PlatformUtilitiesPlatformVersion Property
Current Platform version in Major.Minor form
Namespace: ASCOM.ComAssembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
public static string PlatformVersion { get; }
Public Shared ReadOnly Property PlatformVersion As String
Get
Return Value
StringCurrent Platform version in Major.Minor form
Please note that this function returns the version number in the invariant culture, which means that the MAJOR.MINOR separator is always the point
character regardless of which character is used as the decimal separator in the application's locale.
If you wish to convert the Platform version into a Double value, you should parse the string using the invariant culture as follows:
double platformVersion = Double.Parse(PlatformUtilities.PlatformVersion, CultureInfo.InvariantCulture)
If you just wish to test whether the platform is greater than a particular level,
you can use the IsMinimumRequiredVersion method.
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10