Compartilhar via


ProcessModelSection.MinWorkerThreads Propriedade

Definição

Obtém ou define o número mínimo de threads de trabalho por CPU no pool de threads do CLR.

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

Valor da propriedade

Int32

O número mínimo de threads de trabalho por CPU no pool de threads clr.

Atributos

Exemplos

O exemplo de código a seguir mostra como acessar a MinWorkerThreads propriedade.


  // 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

Aplica-se a