共用方式為


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。

屬性

例外狀況

範例

以下範例說明如何使用該 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 價值。 當請求實體超過此閾值後,會被透明緩衝到磁碟上。

適用於