isWindowsVersionOrGreater abstract method

bool isWindowsVersionOrGreater({
  1. int majorVersion = 0,
  2. int minorVersion = 0,
  3. int servicePackMajor = 0,
})

Indicates if the current OS version matches, or is greater than, the provided version information. This function is useful in confirming a version of Windows Server that doesn't share a version number with a client release.

Important You should only use this function if the other provided Version Helper functions do not fit within your scenarios.

majorVersion The major OS version number.

minorVersion The minor OS version number.

servicePackMajor The major Service Pack version number.

TRUE if the specified version matches, or is greater than, the version of the current Windows OS; otherwise, FALSE.

Implementation

bool isWindowsVersionOrGreater({
  int majorVersion = 0,
  int minorVersion = 0,
  int servicePackMajor = 0,
});