This documentation is archived and is not being maintained.

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.

NoteNote

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 = 
                 processModelSection.WebGarden;

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



.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: