Aracılığıyla paylaş


HttpRuntimeSection.RequestLengthDiskThreshold Özellik

Tanım

Giriş akışı arabelleğe alma eşiğini alır veya ayarlar.

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

Özellik Değeri

Giriş akışı arabelleğe alma eşiğini gösteren kilobayt sayısı. Varsayılan değer 80 kilobayttır.

Öznitelikler

Özel durumlar

Seçili değer değerinden MaxRequestLengthbüyük.

Örnekler

Aşağıdaki örnekte özelliğinin nasıl kullanılacağı gösterilmektedir RequestLengthDiskThreshold .

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

Açıklamalar

RequestLengthDiskThreshold özelliği, giriş akışı arabelleğe alma eşiği sınırını kilobayt cinsinden belirtir. Değeri özellik değerini aşmamalıdır MaxRequestLength . İstek varlığı bu eşiği aştıktan sonra, diske saydam olarak arabelleğe alınıyor.

Şunlara uygulanır