HttpRuntimeSection.RequestLengthDiskThreshold Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur ambang buffering input-stream.
public:
property int RequestLengthDiskThreshold { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("requestLengthDiskThreshold", DefaultValue=80)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int RequestLengthDiskThreshold { get; set; }
[<System.Configuration.ConfigurationProperty("requestLengthDiskThreshold", DefaultValue=80)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.RequestLengthDiskThreshold : int with get, set
Public Property RequestLengthDiskThreshold As Integer
Nilai Properti
Jumlah kilobyte yang menunjukkan ambang buffering input-stream. Defaultnya adalah 80 kilobyte.
- Atribut
Pengecualian
Nilai yang dipilih lebih besar dari MaxRequestLength.
Contoh
Contoh berikut menunjukkan cara menggunakan RequestLengthDiskThreshold properti .
// Get the RequestLengthDiskThreshold property value.
Response.Write("RequestLengthDiskThreshold: " +
configSection.RequestLengthDiskThreshold + "<br>");
// Set the RequestLengthDiskThreshold property value to 512 kilobytes.
configSection.RequestLengthDiskThreshold = 512;
' Get the RequestLengthDiskThreshold property value.
Response.Write("RequestLengthDiskThreshold: " & _
configSection.RequestLengthDiskThreshold & "<br>")
' Set the RequestLengthDiskThreshold property value to 512 kilobytes.
configSection.RequestLengthDiskThreshold = 512
Keterangan
Properti RequestLengthDiskThreshold menentukan batas ambang buffering input-stream dalam jumlah kilobyte. Nilainya tidak boleh melebihi MaxRequestLength nilai properti. Setelah entitas permintaan melebihi ambang batas ini, entitas tersebut di-buffer secara transparan ke disk.