Compartir por


ProcessModelSection.MemoryLimit Propiedad

Definición

Obtiene o establece un valor que indica el tamaño máximo de memoria permitido.

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

Valor de propiedad

Porcentaje de la memoria total del sistema. El valor predeterminado es el 60 %.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo acceder a la MemoryLimit propiedad .


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

Comentarios

El tamaño de memoria se expresa como un porcentaje de la memoria total del sistema. Esta es la cantidad de memoria que puede consumir un proceso de trabajo antes de que ASP.NET reinicie (rebota).

Se aplica a