Condividi tramite


ProcessModelSection.MemoryLimit Proprietà

Definizione

Ottiene o imposta un valore che indica le dimensioni massime consentite della memoria.

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

Valore della proprietà

Percentuale della memoria totale di sistema. Il valore predefinito è il 60%.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come accedere alla MemoryLimit proprietà .


 // 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

Commenti

Le dimensioni della memoria sono espresse come percentuale della memoria totale di sistema. Si tratta della quantità di memoria che un processo di lavoro può utilizzare prima che ASP.NET riavvii (rimbalzi).

Si applica a