HttpRuntimeSection.RequestLengthDiskThreshold プロパティ

定義

入力ストリーム バッファリングのしきい値を取得または設定します。

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

プロパティ値

入力ストリーム バッファリングのしきい値を示すキロバイト数。 既定値は 80 KB です。

属性

例外

選択した値が MaxRequestLengthより大きい。

次の例は、 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

注釈

RequestLengthDiskThreshold プロパティは、入力ストリーム バッファリングのしきい値の制限をキロバイト単位で指定します。 その値は、 MaxRequestLength プロパティ値を超えないようにしてください。 要求エンティティがこのしきい値を超えると、ディスクに透過的にバッファーされます。

適用対象