HttpRuntimeSection.MaxUrlLength プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HTTP 要求の URL の最大文字数を取得または設定します。
public:
property int MaxUrlLength { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxUrlLength", DefaultValue=260)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxUrlLength { get; set; }
[<System.Configuration.ConfigurationProperty("maxUrlLength", DefaultValue=260)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxUrlLength : int with get, set
Public Property MaxUrlLength As Integer
プロパティ値
URL の長さ (文字数)。 既定値は 260 です。
- 属性
注釈
MaxUrlLength プロパティの値には、0 以上の任意の整数を指定できます。
注
値が非常に小さいと、Web サイトが使用できなくなる可能性があります。
要求 URL の長さ ( Path プロパティの値) が構成されたサイズ制限を超えた場合、ASP.NET は HTTP 400 (無効な要求) 状態コードを返します
この値は、httpRuntime要素のMaxUrlLength属性を設定することで、構成ファイルで設定できます。 詳細については、「 httpRuntime 要素 (ASP.NET 設定スキーマ)」を参照してください。