PlatformUtilitiesPlatformVersion Property
Current Platform version in Major.Minor form
Namespace: ASCOM.ComAssembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
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