ProcessModelSection.WebGarden Property


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

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("webGarden", DefaultValue = false)]
public bool WebGarden { get; set; }

Property Value

Type: System.Boolean

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

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.


A multiprocessor Web server is called a Web garden.

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

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

// Set the WebGarden property to true.
processModelSection.WebGarden = true;

.NET Framework
Available since 2.0
Return to top