Share via


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

プロパティ値

CpuMask を使用してワーカー プロセスを有効な CPU の番号にマップする場合は trueCpuMask を無視する場合は 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 必要があります。

プロパティが WebGardenfalse設定されている場合、 CpuMask 属性は無視され、1 つのワーカー プロセスのみが実行されます。

Note

マルチプロセッサ Web サーバーは、Web ガーデンと呼ばれます。

適用対象