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

Int32

Giriş akışı arabelleğe alma eşiğini gösteren bayt 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 bytes.
configSection.RequestLengthDiskThreshold = 512;
' Get the RequestLengthDiskThreshold property value.
Response.Write("RequestLengthDiskThreshold: " & _
  configSection.RequestLengthDiskThreshold & "<br>")

' Set the RequestLengthDiskThreshold property value to 512 bytes.
configSection.RequestLengthDiskThreshold = 512

Açıklamalar

özelliği, RequestLengthDiskThreshold bayt sayısı olarak giriş akışı arabelleğe alma eşiği sınırını 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