Partager via


ProcessModelSection.MemoryLimit Propriété

Définition

Obtient ou définit une valeur indiquant la taille de mémoire maximale autorisée.

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

Valeur de propriété

Pourcentage de la mémoire système totale. La valeur par défaut est de 60 %.

Attributs

Exemples

L’exemple de code suivant montre comment accéder à la MemoryLimit propriété.


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

Remarques

La taille de la mémoire est exprimée sous la forme d’un pourcentage de la mémoire système totale. Il s’agit de la quantité de mémoire qu’un processus de travail peut consommer avant que ASP.NET redémarre (rebondit).

S’applique à