OperatingSystemIsAtLeast Method (OperatingSystemEnumOsName, Int32) |
Determines whether the operating system is of the specified version or later, allowing specification of a minimum service pack that must be installed on the lowest version.
Namespace: Alphaleonis.Win32Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static bool IsAtLeast(
OperatingSystemEnumOsName version,
int servicePackVersion
)
Public Shared Function IsAtLeast (
version As OperatingSystemEnumOsName,
servicePackVersion As Integer
) As Boolean
public:
static bool IsAtLeast(
OperatingSystemEnumOsName version,
int servicePackVersion
)
static member IsAtLeast :
version : OperatingSystemEnumOsName *
servicePackVersion : int -> bool
Parameters
- version
- Type: Alphaleonis.Win32OperatingSystemEnumOsName
The minimum required version. - servicePackVersion
- Type: SystemInt32
The major version of the service pack that must be installed on the minimum required version to return true. This can be 0 to indicate that no service pack is required.
Return Value
Type:
Boolean if the operating system matches the specified
version with the specified service pack, or if the operating system is of a later version; otherwise,
.
See Also