ProcessModelSection.MinWorkerThreads Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die Mindestanzahl von Arbeitsthreads pro CPU im CLR-Threadpool ab oder legt diese fest.
public:
property int MinWorkerThreads { int get(); void set(int value); };
[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
Eigenschaftswert
Die mindeste Anzahl von Arbeitsthreads pro CPU im CLR-Threadpool.
- Attribute
Beispiele
Im folgenden Codebeispiel wird der Zugriff auf die MinWorkerThreads-Eigenschaft veranschaulicht.
// 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