OperatingSystem.IsWindows メソッド

定義

現在のアプリケーションがWindowsで実行されているかどうかを示します。

public:
 static bool IsWindows();
public static bool IsWindows ();
static member IsWindows : unit -> bool
Public Shared Function IsWindows () As Boolean

戻り値

Boolean

現在のアプリケーションが Windows 上で実行されている場合は true。それ以外の場合は false

適用対象