C# Class System.Runtime.OSPlatformHelper

Operation system platform helper
操作系统平台信息帮助者程序
Afficher le fichier Open project: cosmos-loops/cosmos-standard Class Usage Examples

Méthodes publiques

Méthode Description
IsLinux ( ) : bool

Is current operation system Linux system
当前操作系统是否为 Linux 系统

IsMacOS ( ) : bool

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统

IsOSX ( ) : bool

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统

IsWindows ( ) : bool

Is current operation system Microsoft Windows
当前操作系统是否为微软视窗(Windows)操作系统

Method Details

IsLinux() public static méthode

Is current operation system Linux system
当前操作系统是否为 Linux 系统
public static IsLinux ( ) : bool
Résultat bool

IsMacOS() public static méthode

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统
public static IsMacOS ( ) : bool
Résultat bool

IsOSX() public static méthode

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统
public static IsOSX ( ) : bool
Résultat bool

IsWindows() public static méthode

Is current operation system Microsoft Windows
当前操作系统是否为微软视窗(Windows)操作系统
public static IsWindows ( ) : bool
Résultat bool