ProcessModelSection.MinWorkerThreads プロパティ
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
CLR スレッド プールにおける CPU あたりのワーカー スレッド数の下限を取得または設定します。
public:
property int MinWorkerThreads { int get(); void set(int value); };
C#
[System.Configuration.ConfigurationProperty("minWorkerThreads", DefaultValue=1)]
[System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)]
public int MinWorkerThreads { get; set; }
[<System.Configuration.ConfigurationProperty("minWorkerThreads", DefaultValue=1)>]
[<System.Configuration.IntegerValidator(MaxValue=2147483646, MinValue=1)>]
member this.MinWorkerThreads : int with get, set
Public Property MinWorkerThreads As Integer
CLR スレッド プール内の CPU あたりのワーカー スレッドの最小数。
- 属性
MinWorkerThreads プロパティへのアクセス方法を次のコード例に示します。
C#
// Get the current MinWorkerThreads property value.
int minWorkerThreads =
processModelSection.MinWorkerThreads;
// Set the MinWorkerThreads property to 2.
processModelSection.MinWorkerThreads = 2;
' Get the current MinWorkerThreads property value.
Dim minWorkerThreads As Integer = _
processModelSection.MinWorkerThreads
' Set the MinWorkerThreads property to 2.
processModelSection.MinWorkerThreads = 2
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。