ProcessModelSection.WebGarden Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan nilai yang memungkinkan CPU yang tersedia untuk menjalankan proses pekerja.
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
Nilai Properti
true, jika CpuMask digunakan untuk memetakan proses pekerja ke jumlah CPU yang memenuhi syarat; false jika CpuMask diabaikan.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara mengakses WebGarden properti.
// 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
Keterangan
Properti WebGarden harus digunakan dengan CpuMask properti .
WebGarden Jika properti diatur ke false, CpuMask atribut diabaikan dan hanya satu proses pekerja yang berjalan.
Nota
Server Web multiproscesor disebut taman Web.