UtilWindows Class

Contains operating system info.

Definition

Namespace: DevCase.Core.Windows.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilWindows
Inheritance
Object    UtilWindows

Properties

CurrentArchitecture Determines whether the architecture of the current operating system is 32 or 64 Bits.
IsVirtualMachine Determines whether the current application is running in a Virtual Machine OS.

The detection algorithm is compatible with:

Virtual-Box, VMWare, and QEmu.

IsWin10 Gets a value that determines whether the current operating system is Windows 10.
IsWin10OrGreater Gets a value that determines whether the current operating system is Windows 10, or greater.
IsWin11 Gets a value that determines whether the current operating system is Windows 11.
IsWin11OrGreater Gets a value that determines whether the current operating system is Windows 11, or greater.
IsWin7 Gets a value that determines whether the current operating system is Windows 7.
IsWin7OrGreater Gets a value that determines whether the current operating system is Windows 7, or greater.
IsWin8 Gets a value that determines whether the current operating system is Windows 8.
IsWin81 Gets a value that determines whether the current operating system is Windows 8.1.
IsWin81OrGreater Gets a value that determines whether the current operating system is Windows 8.1, or greater.
IsWin8OrGreater Gets a value that determines whether the current operating system is Windows 8, or greater.
IsWinVista Gets a value that determines whether the current operating system is Windows VISTA.
IsWinVistaOrGreater Gets a value that determines whether the current operating system is Windows VISTA, or greater.
IsWinXP Gets a value that determines whether the current operating system is Windows XP.
IsWinXPOrGreater Gets a value that determines whether the current operating system is Windows XP, or greater.
MostRecentInstalledFrameworkVersion Gets a value that determines which is the most recent version of the .NET Framework runtimes installed on the current machine.
OsName Gets the full name of the operating system.
SystemIdleTime Retrieves the time of the last input (mouse or keyboard) event in the operating system. That is, the last time the user has pressed a key or used the mouse.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also