通过


ProcessModelSection.WebGarden 属性

定义

获取或设置一个值,该值使可用的 CPU 能够运行工作进程。

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

属性值

true,如果 CpuMask 用于将工作进程映射到符合条件的 CPU 数, falseCpuMask 为忽略。

属性

示例

下面的代码示例演示如何访问 WebGarden 属性。


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

注解

WebGarden 属性必须与该属性一起使用 CpuMask

WebGarden如果该属性设置为false,则忽略该CpuMask属性,并且只运行一个工作进程。

注释

多处理器 Web 服务器称为 Web 花园。

适用于