Modifica

Condividi tramite


ProcessModelSection.WebGarden Property

Definition

Gets or sets a value enabling the available CPUs to run the worker processes.

public:
 property bool WebGarden { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("webGarden", DefaultValue=false)]
public bool WebGarden { get; set; }
[<System.Configuration.ConfigurationProperty("webGarden", DefaultValue=false)>]
member this.WebGarden : bool with get, set
Public Property WebGarden As Boolean

Property Value

true, if CpuMask is used to map the worker processes to the number of eligible CPUs; false if CpuMask is ignored.

Attributes

Examples

The following code example shows how to access the WebGarden property.


// Get the current WebGarden property value.
bool webGarden = 
 processModelSection.WebGarden;

// Set the WebGarden property to true.
processModelSection.WebGarden = true;
' Get the current WebGarden property value.
   Dim webGarden As Boolean = _
   processModelSection.WebGarden

' Set the WebGarden property to true.
processModelSection.WebGarden = True

Remarks

The WebGarden property must be used with the CpuMask property.

If the WebGarden property is set to false, the CpuMask attribute is ignored and only one worker process runs.

Note

A multiprocessor Web server is called a Web garden.

Applies to