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

屬性值

Int32

表示輸入資料流緩衝臨界值的位元組數目。 預設為 80 KB。

屬性

例外狀況

範例

下列範例將示範如何使用 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

備註

屬性 RequestLengthDiskThreshold 會以位元組數目指定輸入資料流程緩衝閾值限制。 其值不應超過 MaxRequestLength 屬性值。 要求實體超過此閾值之後,它會以透明方式緩衝處理到磁片上。

適用於