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

属性值

Boolean

如果使用 CpuMask 将辅助进程映射到符合条件的 CPU 数,则为 true;如果忽略 CpuMask,则为 false

属性

示例

下面的代码示例演示如何访问 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 花园。

适用于