共用方式為


ProcessModelSection.CpuMask 屬性

定義

取得或設定一個值,表示多處理器伺服器上哪些處理器有資格執行 ASP.NET 程序。

public:
 property int CpuMask { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("cpuMask", DefaultValue="0xffffffff")]
public int CpuMask { get; set; }
[<System.Configuration.ConfigurationProperty("cpuMask", DefaultValue="0xffffffff")>]
member this.CpuMask : int with get, set
Public Property CpuMask As Integer

屬性值

代表要套用的位元模式的數字。 預設值為0xFFFFFFFF。

屬性

範例

以下程式碼範例說明如何存取該 CpuMask 物業。


// Get the current CpuMask property value.
int cpuMask = 
 processModelSection.CpuMask;

// Set the CpuMask property to 0x000000FF.
processModelSection.CpuMask = 0x000000FF;
' Get the current CpuMask property value.
   Dim cpuMask As Integer = _
   processModelSection.CpuMask

' Set the CpuMask property to 0x000000FF.
processModelSection.CpuMask = &HFF

備註

CpuMask 值指定一個位元模式,表示有資格執行 ASP.NET 執行緒的 CPU。 若 WebGarden 屬性設定為 true,則 CpuMask 工作程序限制於合格 CPU 數量。 允許的最大工作程序數等於 CPU 數量。 預設情況下,所有 CPU 皆啟用,ASP.NET 為每個 CPU 啟動一個程序。 若屬性 WebGarden 設為 falseCpuMask 該屬性會被忽略,且只會執行一個工作程序。

適用於