Bagikan melalui


ProcessModelSection.MemoryLimit Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan ukuran memori maksimum yang diizinkan.

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

Nilai Properti

Persentase dari total memori sistem. Defaultnya adalah 60 persen.

Atribut

Contoh

Contoh kode berikut menunjukkan cara mengakses MemoryLimit properti.


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

Keterangan

Ukuran memori dinyatakan sebagai persentase dari total memori sistem. Ini adalah jumlah memori yang dapat dikonsumsi oleh proses pekerja sebelum ASP.NET memulai ulang (memantul) itu.

Berlaku untuk