Class OTZEnvUtils
環境関連の機能を提供します。
Inheritance
System.Object
OTZEnvUtils
名前空間: OTZControls.Utilities
アセンブリ: OTZControls.dll
Syntax
public class OTZEnvUtils
プロパティ
IsDesignTime
デザインモードかどうかを取得します。
宣言
public static bool IsDesignTime { get; }
プロパティ値
型 | 説明 |
---|---|
System.Boolean |
IsWindows10
実行中の OS が Windows 10 か判断します。
宣言
public static bool IsWindows10 { get; }
プロパティ値
型 | 説明 |
---|---|
System.Boolean | true: Windows 10、false: Windows 10以外 |
IsWindows11
実行中の OS が Windows 11 か判断します。
宣言
public static bool IsWindows11 { get; }
プロパティ値
型 | 説明 |
---|---|
System.Boolean | true: Windows 11、false: Windows 11以外 |
メソッド
GetThreadCount(Int32)
対象の処理件数の 1 スレッド当たりの平均処理件数を取得します。
宣言
public static (int threadCount, int avgProcessCount) GetThreadCount(int processCount)
パラメーター
型 | 名前 | 説明 |
---|---|---|
System.Int32 | processCount | 対象の処理件数。 |
戻り値
型 | 説明 |
---|---|
System.ValueTuple<System.Int32, System.Int32> | スレッド数と 1 スレッド当たりの平均処理件数。 |
IsDesignMode(Control)
デザインモードか判断ます。
宣言
public static bool IsDesignMode(Control control)
パラメーター
型 | 名前 | 説明 |
---|---|---|
Control | control |
戻り値
型 | 説明 |
---|---|
System.Boolean |