PlatformUtilitiesPlatformVersion Property

Current Platform version in Major.Minor form

Definition

Namespace: ASCOM.Com
Assembly: ASCOM.Com (in ASCOM.Com.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static string PlatformVersion { get; }

Return Value

String
Current Platform version in Major.Minor form

Remarks

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.

Version Information

.NET Standard

Supported in: 2.0

See Also