Class WindowsVersion
Extension methods to test the windows version
Inheritance
Namespace: Dapplo.Windows.Common
Assembly: Dapplo.Windows.Common.dll
Syntax
public static class WindowsVersion : object
Properties
| Improve this Doc View SourceIsWindows10
Test if the current OS is Windows 10
Declaration
public static bool IsWindows10 { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 10 |
IsWindows10OrLater
Test if the current OS is Windows 10 or later
Declaration
public static bool IsWindows10OrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 10 or later |
IsWindows7OrLater
Test if the current OS is Windows 7 or later
Declaration
public static bool IsWindows7OrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 7 or later |
IsWindows8
Test if the current OS is Windows 8.0
Declaration
public static bool IsWindows8 { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 8.0 |
IsWindows81
Test if the current OS is Windows 8(.1)
Declaration
public static bool IsWindows81 { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 8(.1) |
IsWindows81OrLater
Test if the current OS is Windows 8.1 or later
Declaration
public static bool IsWindows81OrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 8.1 or later |
IsWindows8OrLater
Test if the current OS is Windows 8 or later
Declaration
public static bool IsWindows8OrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows 8 or later |
IsWindowsVista
Test if the current OS is Windows Vista
Declaration
public static bool IsWindowsVista { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows Vista or later |
IsWindowsVistaOrLater
Test if the current OS is Windows Vista or later
Declaration
public static bool IsWindowsVistaOrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows Vista or later |
IsWindowsXp
Test if the current OS is Windows XP
Declaration
public static bool IsWindowsXp { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows XP or later |
IsWindowsXpOrLater
Test if the current OS is Windows XP or later
Declaration
public static bool IsWindowsXpOrLater { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if we are running on Windows XP or later |