共用方式為


ProcessModelSection.MemoryLimit 屬性

定義

取得或設定一個表示最大允許記憶體容量的值。

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

屬性值

佔總系統記憶體的百分比。 預設是60%。

屬性

範例

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


 // Get the current MemoryLimit property value.
int memLimit = processModelSection.MemoryLimit;

 // Set the MemoryLimit property to 50.
 processModelSection.MemoryLimit = 50;
' Get the current MemoryLimit property value.
   Dim memLimit As Integer = _
   processModelSection.MemoryLimit

' Set the MemoryLimit property to 50.
processModelSection.MemoryLimit = 50

備註

記憶體大小以系統記憶體總數的百分比表示。 這是工作程序在重新啟動(跳回)前所能消耗的記憶體 ASP.NET 量。

適用於